diff options
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 82e15dbb3ac7..5b3744e7a95b 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c | |||
@@ -322,6 +322,8 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb, | |||
322 | 322 | ||
323 | if (cpumask_test_cpu(policy->cpu, ¬ify_device->allowed_cpus)) | 323 | if (cpumask_test_cpu(policy->cpu, ¬ify_device->allowed_cpus)) |
324 | max_freq = notify_device->cpufreq_val; | 324 | max_freq = notify_device->cpufreq_val; |
325 | else | ||
326 | return 0; | ||
325 | 327 | ||
326 | /* Never exceed user_policy.max */ | 328 | /* Never exceed user_policy.max */ |
327 | if (max_freq > policy->user_policy.max) | 329 | if (max_freq > policy->user_policy.max) |