old_cpu_power is wrongly divided by 65535 in ips_monitor()
authorminskey guo <chaohong.guo@linux.intel.com>
Fri, 17 Sep 2010 06:03:01 +0000 (14:03 +0800)
committerMatthew Garrett <mjg@redhat.com>
Tue, 5 Oct 2010 18:58:57 +0000 (14:58 -0400)
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>
drivers/platform/x86/intel_ips.c

index fb31700..3c7b25c 100644 (file)
@@ -948,7 +948,7 @@ static int ips_monitor(void *data)
                ITV_ME_SEQNO_SHIFT;
        seqno_timestamp = get_jiffies_64();
 
-       old_cpu_power = thm_readl(THM_CEC) / 65535;
+       old_cpu_power = thm_readl(THM_CEC);
        schedule_timeout_interruptible(msecs_to_jiffies(IPS_SAMPLE_PERIOD));
 
        /* Collect an initial average */