aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorminskey guo <chaohong.guo@linux.intel.com>2010-09-17 02:03:01 -0400
committerMatthew Garrett <mjg@redhat.com>2010-10-05 14:58:57 -0400
commitc21eae4f7c38db0e4693fb4cb24fb42fb83d8c15 (patch)
treef81720a023cf14eb6cbe6ec189fd627107f117e2 /drivers
parent6230d18cc7c4c68b7a38ea73bf5910e7652e5b21 (diff)
old_cpu_power is wrongly divided by 65535 in ips_monitor()
The variable old_cpu_power is used to save the value of THM_CEC register. In get_cpu_power(), it will be divided by 65535. Signed-off-by: minskey guo <chaohong.guo@intel.com> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/intel_ips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c
index fb317007e3e5..3c7b25c3cb80 100644
--- a/drivers/platform/x86/intel_ips.c
+++ b/drivers/platform/x86/intel_ips.c
@@ -948,7 +948,7 @@ static int ips_monitor(void *data)
948 ITV_ME_SEQNO_SHIFT; 948 ITV_ME_SEQNO_SHIFT;
949 seqno_timestamp = get_jiffies_64(); 949 seqno_timestamp = get_jiffies_64();
950 950
951 old_cpu_power = thm_readl(THM_CEC) / 65535; 951 old_cpu_power = thm_readl(THM_CEC);
952 schedule_timeout_interruptible(msecs_to_jiffies(IPS_SAMPLE_PERIOD)); 952 schedule_timeout_interruptible(msecs_to_jiffies(IPS_SAMPLE_PERIOD));
953 953
954 /* Collect an initial average */ 954 /* Collect an initial average */