Commit c21eae4f authored by minskey guo's avatar minskey guo Committed by Matthew Garrett
Browse files

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: default avatarminskey guo <>
Acked-by: default avatarJesse Barnes <>
Signed-off-by: default avatarMatthew Garrett <>
parent 6230d18c
......@@ -948,7 +948,7 @@ static int ips_monitor(void *data)
seqno_timestamp = get_jiffies_64();
old_cpu_power = thm_readl(THM_CEC) / 65535;
old_cpu_power = thm_readl(THM_CEC);
/* Collect an initial average */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment