mbox series

[v1,0/2] fixed mediatek-cpufreq has multi policy concurrency issue

Message ID 20240913103933.30895-1-chun-jen.tseng@mediatek.com
Headers show
Series fixed mediatek-cpufreq has multi policy concurrency issue | expand

Message

Mark Tseng Sept. 13, 2024, 10:39 a.m. UTC
For multi cluster SoC, the cpufreq->target_index() is re-enter function 
for each policy to change CPU frequency. In the cirtical session must 
use glocal mutex lock to avoid get wrong OPP.

Mark Tseng (2):
  PM / devfreq: mediatek: protect oop in critical session
  cpufreq: mediatek: Fixed cpufreq has 2 policy will cause concurrency

 drivers/cpufreq/mediatek-cpufreq.c | 65 ++++++++++++++++++++++--------
 drivers/devfreq/mtk-cci-devfreq.c  | 30 +++++++-------
 2 files changed, 64 insertions(+), 31 deletions(-)