From: Kapileshwar Singh <[email protected]>

When cpufreq changes the policy cpu, we need to update our cached cpu
device accordingly.

Cc: Zhang Rui <[email protected]>
Cc: Eduardo Valentin <[email protected]>
Signed-off-by: Kapileshwar Singh <[email protected]>
---
 drivers/thermal/cpu_cooling.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index c4974144c787..e306d6bc3cf1 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -269,6 +269,9 @@ static int cpufreq_thermal_notifier(struct notifier_block 
*nb,
                mutex_unlock(&cooling_cpufreq_lock);
                break;
 
+       case CPUFREQ_UPDATE_POLICY_CPU:
+               update_cpu_device(policy->cpu);
+               break;
        case CPUFREQ_CREATE_POLICY:
                update_cpu_device(policy->cpu);
                break;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to