PM / devfreq: mediatek: protect oop in critical session
authorMark Tseng <chun-jen.tseng@mediatek.com>
Fri, 18 Aug 2023 02:17:41 +0000 (10:17 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Sun, 8 Oct 2023 22:28:50 +0000 (07:28 +0900)
commitd2805601988fb0b41247c95dcb4b8b8455921978
tree045bd181e2298700892f37736338b35d9e07fd97
parent8a749fd1a8720d4619c91c8b6e7528c0a355c0aa
PM / devfreq: mediatek: protect oop in critical session

mtk_ccifreq_opp_notifier is reenter function when policy0 / policy6
change freq, so mutex_lock should protect all OPP event.

Link: https://lore.kernel.org/lkml/20230818021741.6173-1-chun-jen.tseng@mediatek.com/T/
Signed-off-by: Mark Tseng <chun-jen.tseng@mediatek.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/mtk-cci-devfreq.c