]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-3.0/pm-wip/cpufreq/0018-OMAP2-cpufreq-Enable-all-CPUs-in-shared-policy-mask.patch
linux 3.0: add more sakoman patches, refresh others
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-3.0 / pm-wip / cpufreq / 0018-OMAP2-cpufreq-Enable-all-CPUs-in-shared-policy-mask.patch
1 From eabad861d0c838afff9f54da90f15f19dff627f2 Mon Sep 17 00:00:00 2001
2 From: Todd Poynor <toddpoynor@google.com>
3 Date: Tue, 7 Jun 2011 13:57:52 -0700
4 Subject: [PATCH 18/19] OMAP2+: cpufreq: Enable all CPUs in shared policy mask
6 Enable all CPUs in the shared policy in the CPU init callback.
7 Otherwise, the governor CPUFREQ_GOV_START event is invoked with
8 a policy that only includes the first CPU, leaving other CPUs
9 uninitialized by the governor.
11 Signed-off-by: Todd Poynor <toddpoynor@google.com>
12 Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
13 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
14 ---
15  arch/arm/mach-omap2/omap2plus-cpufreq.c |    4 +---
16  1 files changed, 1 insertions(+), 3 deletions(-)
18 diff --git a/arch/arm/mach-omap2/omap2plus-cpufreq.c b/arch/arm/mach-omap2/omap2plus-cpufreq.c
19 index 8598928..1f3b2e1 100644
20 --- a/arch/arm/mach-omap2/omap2plus-cpufreq.c
21 +++ b/arch/arm/mach-omap2/omap2plus-cpufreq.c
22 @@ -159,7 +159,6 @@ static inline void freq_table_free(void)
23  static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
24  {
25         int result = 0;
26 -       static cpumask_var_t cpumask;
27  
28         mpu_clk = clk_get(NULL, mpu_clk_name);
29         if (IS_ERR(mpu_clk))
30 @@ -200,8 +199,7 @@ static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
31          */
32         if (is_smp()) {
33                 policy->shared_type = CPUFREQ_SHARED_TYPE_ANY;
34 -               cpumask_or(cpumask, cpumask_of(policy->cpu), cpumask);
35 -               cpumask_copy(policy->cpus, cpumask);
36 +               cpumask_setall(policy->cpus);
37         }
38  
39         /* FIXME: what's the actual transition time? */
40 -- 
41 1.6.6.1