From mboxrd@z Thu Jan 1 00:00:00 1970 From: minskey guo Subject: [PATCH 2/4 RESEND] [intel_ips] old_cpu_power is wrongly divided by 65535 in ips_monitor() Date: Tue, 12 Oct 2010 14:41:19 +0800 Message-ID: <1286865679-22941-1-git-send-email-chaohong.guo@linux.intel.com> Return-path: Received: from mga03.intel.com ([143.182.124.21]:18570 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690Ab0JLGqn (ORCPT ); Tue, 12 Oct 2010 02:46:43 -0400 Sender: platform-driver-x86-owner@vger.kernel.org List-ID: To: platform-driver-x86@vger.kernel.org, jbarnes@virtuousgeek.org, mjg@redhat.com Cc: chaohong.guo@intel.com, minskey guo 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 --- drivers/platform/x86/intel_ips.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c index fb31700..3c7b25c 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 */ -- 1.7.1