mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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:
parent
58a67f0647
commit
9c9056f434
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user