diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-05-24 00:56:50 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-06-02 17:24:40 -0400 |
commit | 388612baba201bdcedfa66782f524dcc507d9f12 (patch) | |
tree | 2c9750d1b891b7527b0fd9692bc50fe613c27bc2 /drivers/cpufreq/cpufreq.c | |
parent | 9a15fb2c797a15524e63eacb10bd6cd68a99e830 (diff) |
cpufreq: Send START policy notification after sending CREATE
The sequence got a bit wrong as we are sending CPUFREQ_START
notifications even before we have sent CPUFREQ_CREATE_POLICY.
Fix it.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index bdf1f280ae39..364922fda428 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -1258,9 +1258,6 @@ static int cpufreq_online(unsigned int cpu) | |||
1258 | } | 1258 | } |
1259 | } | 1259 | } |
1260 | 1260 | ||
1261 | blocking_notifier_call_chain(&cpufreq_policy_notifier_list, | ||
1262 | CPUFREQ_START, policy); | ||
1263 | |||
1264 | if (new_policy) { | 1261 | if (new_policy) { |
1265 | ret = cpufreq_add_dev_interface(policy); | 1262 | ret = cpufreq_add_dev_interface(policy); |
1266 | if (ret) | 1263 | if (ret) |
@@ -1273,6 +1270,9 @@ static int cpufreq_online(unsigned int cpu) | |||
1273 | write_unlock_irqrestore(&cpufreq_driver_lock, flags); | 1270 | write_unlock_irqrestore(&cpufreq_driver_lock, flags); |
1274 | } | 1271 | } |
1275 | 1272 | ||
1273 | blocking_notifier_call_chain(&cpufreq_policy_notifier_list, | ||
1274 | CPUFREQ_START, policy); | ||
1275 | |||
1276 | ret = cpufreq_init_policy(policy); | 1276 | ret = cpufreq_init_policy(policy); |
1277 | if (ret) { | 1277 | if (ret) { |
1278 | pr_err("%s: Failed to initialize policy for cpu: %d (%d)\n", | 1278 | pr_err("%s: Failed to initialize policy for cpu: %d (%d)\n", |