diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-06-20 01:29:39 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2022-06-29 23:11:17 +0300 |
commit | 82c66d2bbbeda9e493487e7413769087a0b46250 (patch) | |
tree | 51a2013ac1d03036809f963f90fc5d05d726b8c3 /drivers/devfreq | |
parent | b5d281f6c16dd432b618bdfd36ddba1a58d5b603 (diff) | |
download | linux-82c66d2bbbeda9e493487e7413769087a0b46250.tar.xz |
PM / devfreq: Fix kernel warning with cpufreq passive register fail
Remove cpufreq_passive_unregister_notifier from
cpufreq_passive_register_notifier in case of error as devfreq core
already call unregister on GOV_START fail.
This fix the kernel always printing a WARN on governor PROBE_DEFER as
cpufreq_passive_unregister_notifier is called two times and return
error on the second call as the cpufreq is already unregistered.
Fixes: a03dacb0316f ("PM / devfreq: Add cpu based scaling support to passive governor")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r-- | drivers/devfreq/governor_passive.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/devfreq/governor_passive.c b/drivers/devfreq/governor_passive.c index 406ef79c0c46..bce487cc8f3e 100644 --- a/drivers/devfreq/governor_passive.c +++ b/drivers/devfreq/governor_passive.c @@ -330,7 +330,6 @@ err_free_cpu_data: err_put_policy: cpufreq_cpu_put(policy); err: - WARN_ON(cpufreq_passive_unregister_notifier(devfreq)); return ret; } |