drivers/thermal/cpufreq_cooling: Use private callback ops for each cooling device
authorLukasz Luba <lukasz.luba@arm.com>
Mon, 13 Jun 2022 12:43:24 +0000 (13:43 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 28 Jul 2022 15:29:41 +0000 (17:29 +0200)
commit3cbf6a8ab70b21de75bc389d384911392cf7f616
tree4233151534dee0363eef4e207c2ba7cbdff976cf
parent62f46fc7b8c639bc97cc9c69e063c40970b6e14c
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: Lukasz Luba <lukasz.luba@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20220613124327.30766-2-lukasz.luba@arm.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/cpufreq_cooling.c