Commit 5239ef3d authored by Lukasz Luba's avatar Lukasz Luba Committed by Todd Kjos
Browse files

UPSTREAM: drivers/thermal/cpufreq_cooling: Use private callback ops for each cooling device



It is very unlikely that one CPU cluster would have the EM and some other
won't have it (because EM registration failed or DT lacks needed entry).
Although, we should avoid modifying global variable with callbacks anyway.
Redesign this and add safety for such situation.

Signed-off-by: default avatarLukasz Luba <lukasz.luba@arm.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20220613124327.30766-2-lukasz.luba@arm.com


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>

Bug: 271216982
Change-Id: Ib3c5b8545841ed462fc42102f014b75f14f3692b
(cherry picked from commit 3cbf6a8a)
Signed-off-by: default avatarDi Shen <di.shen@unisoc.com>
parent 287c9980
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment