3d2bb2de05b0bc87f7f4c79c2bcce34113e7c175
[openwrt/staging/stintel.git] /
1 From 82c66d2bbbeda9e493487e7413769087a0b46250 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Mon, 20 Jun 2022 00:29:39 +0200
4 Subject: [PATCH 1/1] PM / devfreq: Fix kernel warning with cpufreq passive
5 register fail
6
7 Remove cpufreq_passive_unregister_notifier from
8 cpufreq_passive_register_notifier in case of error as devfreq core
9 already call unregister on GOV_START fail.
10
11 This fix the kernel always printing a WARN on governor PROBE_DEFER as
12 cpufreq_passive_unregister_notifier is called two times and return
13 error on the second call as the cpufreq is already unregistered.
14
15 Fixes: a03dacb0316f ("PM / devfreq: Add cpu based scaling support to passive governor")
16 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
17 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
18 ---
19 drivers/devfreq/governor_passive.c | 1 -
20 1 file changed, 1 deletion(-)
21
22 --- a/drivers/devfreq/governor_passive.c
23 +++ b/drivers/devfreq/governor_passive.c
24 @@ -336,7 +336,6 @@ err_free_cpu_data:
25 err_put_policy:
26 cpufreq_cpu_put(policy);
27 err:
28 - WARN_ON(cpufreq_passive_unregister_notifier(devfreq));
29
30 return ret;
31 }