]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72c139faa6ddc2896dc93c9c2127c530e2814182
tree4233151534dee0363eef4e207c2ba7cbdff976cf
parentf087fdadb3c6e9b7c3e91c0d0b9d9189721f9220
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