diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq-cpu0.c')
-rw-r--r-- | drivers/cpufreq/cpufreq-cpu0.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index a7e51bd20502..65618536abfa 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c | |||
@@ -46,7 +46,7 @@ static int cpu0_set_target(struct cpufreq_policy *policy, | |||
46 | struct opp *opp; | 46 | struct opp *opp; |
47 | unsigned long volt = 0, volt_old = 0, tol = 0; | 47 | unsigned long volt = 0, volt_old = 0, tol = 0; |
48 | long freq_Hz; | 48 | long freq_Hz; |
49 | unsigned int index, cpu; | 49 | unsigned int index; |
50 | int ret; | 50 | int ret; |
51 | 51 | ||
52 | ret = cpufreq_frequency_table_target(policy, freq_table, target_freq, | 52 | ret = cpufreq_frequency_table_target(policy, freq_table, target_freq, |
@@ -66,10 +66,7 @@ static int cpu0_set_target(struct cpufreq_policy *policy, | |||
66 | if (freqs.old == freqs.new) | 66 | if (freqs.old == freqs.new) |
67 | return 0; | 67 | return 0; |
68 | 68 | ||
69 | for_each_online_cpu(cpu) { | 69 | cpufreq_notify_transition(policy, &freqs, CPUFREQ_PRECHANGE); |
70 | freqs.cpu = cpu; | ||
71 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | ||
72 | } | ||
73 | 70 | ||
74 | if (cpu_reg) { | 71 | if (cpu_reg) { |
75 | rcu_read_lock(); | 72 | rcu_read_lock(); |
@@ -121,10 +118,7 @@ static int cpu0_set_target(struct cpufreq_policy *policy, | |||
121 | } | 118 | } |
122 | 119 | ||
123 | post_notify: | 120 | post_notify: |
124 | for_each_online_cpu(cpu) { | 121 | cpufreq_notify_transition(policy, &freqs, CPUFREQ_POSTCHANGE); |
125 | freqs.cpu = cpu; | ||
126 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); | ||
127 | } | ||
128 | 122 | ||
129 | return ret; | 123 | return ret; |
130 | } | 124 | } |