]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/gpu: Cancel idle/boost work on suspend
authorRob Clark <robdclark@chromium.org>
Sat, 8 Jan 2022 18:09:11 +0000 (10:09 -0800)
committerRob Clark <robdclark@chromium.org>
Tue, 25 Jan 2022 16:54:41 +0000 (08:54 -0800)
commit714332d909e14fbe5a522a28bde9ff9670116407
tree0fc1047e7d5b462c9a33c904a662b718da817ca4
parentacaa01c04470df169a9540b8d932aa8221b2599a
drm/msm/gpu: Cancel idle/boost work on suspend

With system suspend using pm_runtime_force_suspend() we can't rely on
the pm_runtime_get_if_in_use() trick to deal with devfreq callbacks
after (or racing with) suspend.  So flush any pending idle or boost
work in the suspend path.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20220108180913.814448-3-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_gpu_devfreq.c