From: minskey guo Date: Fri, 17 Sep 2010 06:03:01 +0000 (+0800) Subject: old_cpu_power is wrongly divided by 65535 in ips_monitor() X-Git-Tag: v2.6.36-rc8~14^2~9 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=c21eae4f7c38db0e4693fb4cb24fb42fb83d8c15;p=net-next-2.6.git 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 Acked-by: Jesse Barnes Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c index fb317007e3e..3c7b25c3cb8 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) 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 */