Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3de12689 authored by Amir Vajid's avatar Amir Vajid
Browse files

PM / devfreq: memlat: fix suspend/resume calls to devfreq_monitor



The memlat governor suspend/resume callbacks always call devfreq_monitor
suspend/resume functions. The devfreq_monitor suspend/resume functions
run with the assumption that we had started devfreq->work and do a sync
wait to cancel it. However, when should_ignore_df_monitor flag is set,
memlat relies on its own workqueue and devfreq->work is never started.
Cancelling a timer that was never started leads to a crash. Fix this by
only calling devfreq_monitor suspend/resume functions when the
should_ignore_df_monitor flag is not set.

Change-Id: Ie4aff96b6b845f4f5424652943405a572b91b8ca
Signed-off-by: default avatarAmir Vajid <avajid@codeaurora.org>
parent f9c0b494
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment