Commit ea2e648c33bf827024a913e5be02b4c152bb709d
Committed by
Afzal Mohammed
1 parent
7005cf03b8
Exists in
master
cpufreq: OMAP: Enable all CPUs in shared policy mask
Enable all CPUs in the shared policy in the CPU init callback. Otherwise, the governor CPUFREQ_GOV_START event is invoked with a policy that only includes the first CPU, leaving other CPUs uninitialized by the governor. Signed-off-by: Todd Poynor <toddpoynor@google.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com> [vaibhav.bedia@ti.com: Pull in for AM33xx] Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
drivers/cpufreq/omap-cpufreq.c
... | ... | @@ -152,7 +152,6 @@ |
152 | 152 | { |
153 | 153 | int result = 0; |
154 | 154 | struct device *mpu_dev; |
155 | - static cpumask_var_t cpumask; | |
156 | 155 | |
157 | 156 | if (cpu_is_omap24xx()) |
158 | 157 | mpu_clk = clk_get(NULL, "virt_prcm_set"); |
... | ... | @@ -200,8 +199,7 @@ |
200 | 199 | */ |
201 | 200 | if (is_smp()) { |
202 | 201 | policy->shared_type = CPUFREQ_SHARED_TYPE_ANY; |
203 | - cpumask_or(cpumask, cpumask_of(policy->cpu), cpumask); | |
204 | - cpumask_copy(policy->cpus, cpumask); | |
202 | + cpumask_setall(policy->cpus); | |
205 | 203 | } |
206 | 204 | |
207 | 205 | /* FIXME: what's the actual transition time? */ |