On 8/23/23 02:29, peter.wang@xxxxxxxxxxxx wrote:
When no active_reqs, devfreq_monitor(Thread A) will suspend clock scaling. But it may have racing with clk_scaling.suspend_work(Thread B) and actually not suspend clock scaling(requue after suspend). Next time after polling_ms, devfreq_monitor read clk_scaling.window_start_t = 0 then scale up clock abnormal.
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>