diff options
author | Leonard Crestez <leonard.crestez@nxp.com> | 2019-09-24 09:52:23 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2019-11-06 04:04:00 +0100 |
commit | 2abb0d5268ae7b5ddf82099b1f8d5aa8414637d4 (patch) | |
tree | 3c6991f0a3e90ac554a58d23bcfd6cddb14928bf /drivers/devfreq/event/exynos-ppmu.c | |
parent | PM / devfreq: Check NULL governor in available_governors_show (diff) | |
download | linux-2abb0d5268ae7b5ddf82099b1f8d5aa8414637d4.tar.xz linux-2abb0d5268ae7b5ddf82099b1f8d5aa8414637d4.zip |
PM / devfreq: Lock devfreq in trans_stat_show
There is no locking in this sysfs show function so stats printing can
race with a devfreq_update_status called as part of freq switching or
with initialization.
Also add an assert in devfreq_update_status to make it clear that lock
must be held by caller.
Fixes: 39688ce6facd ("PM / devfreq: account suspend/resume for stats")
Cc: stable@vger.kernel.org
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/devfreq/event/exynos-ppmu.c')
0 files changed, 0 insertions, 0 deletions