]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: Fix kernel warning with cpufreq passive register fail
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 19 Jun 2022 22:29:39 +0000 (00:29 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 29 Jun 2022 20:11:17 +0000 (05:11 +0900)
commitbf9080aa7af74d6849aff8d8c9ef67777dde8e73
tree51a2013ac1d03036809f963f90fc5d05d726b8c3
parent520b39385eb483ec41384f00ec23625c34cd3263
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: 0de7288a58b9 ("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>
drivers/devfreq/governor_passive.c