Skip to content

Commit

Permalink
old_cpu_power is wrongly divided by 65535 in ips_monitor()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
minskey guo authored and Matthew Garrett committed Oct 5, 2010
1 parent 6230d18 commit c21eae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/intel_ips.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c21eae4

Please sign in to comment.