thermal: cpu_cooling: Fix a throttling bug

Without this change throttling would get stuck in enabled state forever.
This leads to a regression in Geekbench 5 single-core score
from 760 to 620 on 2-3 run, forever.

Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: Forenche <prahul2003@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
Yaroslav Furman 2020-01-10 17:13:08 +03:00 committed by azrim
parent 58a67f0647
commit 9c9056f434
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C

View File

@ -301,7 +301,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb,
unsigned long clipped_freq = ULONG_MAX, floor_freq = 0;
struct cpufreq_cooling_device *cpufreq_cdev;
if (event != CPUFREQ_THERMAL)
if (event != CPUFREQ_THERMAL || event != CPUFREQ_INCOMPATIBLE)
return NOTIFY_DONE;
mutex_lock(&cooling_list_lock);