Re: [PATCH v3 3/3] cpufreq: mediatek: data safety protect

From: Viresh Kumar
Date: Wed Feb 19 2025 - 00:50:08 EST


On 14-02-25, 15:43, Mark Tseng wrote:
> get policy data in global lock session avoid get wrong data.
>
> Signed-off-by: Mark Tseng <chun-jen.tseng@xxxxxxxxxxxx>
> ---
> drivers/cpufreq/mediatek-cpufreq.c | 15 ++++++++++-----
> 1 file changed, 10 insertions(+), 5 deletions(-)

I think there is some confusion on why exactly locking is required and where
exactly you need it. This patch is incorrect.

If you really think some locking issue is present here, please explain in
detail how a race can happen between different threads.

--
viresh