aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpufreq/speedstep-ich.c
diff options
context:
space:
mode:
authorStratos Karafotis2014-07-18 08:37:25 -0700
committerRafael J. Wysocki2014-07-21 13:43:18 +0200
commitac658131d79e775efb0b819cc5a833e581d4de28 (patch)
tree83efd36c570136f8a3989bc70970fb88b46a543d /drivers/cpufreq/speedstep-ich.c
parent4ab60c3f32c721e46217e762bcd3e55a8f659c04 (diff)
cpufreq: intel_pstate: Keep values in aperf/mperf in full precision
Currently we shift right aperf and mperf variables by FRAC_BITS to prevent overflow when we convert them to fix point numbers (shift left by FRAC_BITS). But this is not necessary, because we actually use delta aperf and mperf which are much less than APERF and MPERF values. So, use the unmodified APERF and MPERF values in calculation. This also adds 8 bits in precision, although the gain is insignificant. Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr> Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/speedstep-ich.c')
0 files changed, 0 insertions, 0 deletions