summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDong Aisheng <aisheng.dong@nxp.com>2024-10-27 15:00:10 +0300
committerAbel Vesa <abel.vesa@linaro.org>2024-11-05 13:02:22 +0300
commite81361f6cf9bf4a1848b0813bc4becb2250870b8 (patch)
tree5d74d3638bb8fe25cfa242f2c5d9c52ae0789bbf /tools/perf/scripts/python/task-analyzer.py
parentff4279618f0aec350b0fb41b2b35841324fbd96e (diff)
downloadlinux-e81361f6cf9bf4a1848b0813bc4becb2250870b8.tar.xz
clk: imx: clk-scu: fix clk enable state save and restore
The scu clk_ops only inplements prepare() and unprepare() callback. Saving the clock state during suspend by checking clk_hw_is_enabled() is not safe as it's possible that some device drivers may only disable the clocks without unprepare. Then the state retention will not work for such clocks. Fixing it by checking clk_hw_is_prepared() which is more reasonable and safe. Fixes: d0409631f466 ("clk: imx: scu: add suspend/resume support") Reviewed-by: Peng Fan <peng.fan@nxp.com> Tested-by: Carlos Song <carlos.song@nxp.com> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Link: https://lore.kernel.org/r/20241027-imx-clk-v1-v3-4-89152574d1d7@nxp.com Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions