diff options
author | Thomas Renninger <trenn@suse.de> | 2008-07-30 01:32:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-30 12:41:43 -0400 |
commit | a1531acd43310a7e4571d52e8846640667f4c74b (patch) | |
tree | ccb0a733180644ec8856219711e6119fd05d4737 /arch/powerpc | |
parent | 1a4e564b7db999fbe5d88318c96ac8747699d417 (diff) |
cpufreq acpi: only call _PPC after cpufreq ACPI init funcs got called already
Ingo Molnar provided a fix to not call _PPC at processor driver
initialization time in "[PATCH] ACPI: fix cpufreq regression" (git
commit e4233dec749a3519069d9390561b5636a75c7579)
But it can still happen that _PPC is called at processor driver
initialization time.
This patch should make sure that this is not possible anymore.
Signed-off-by: Thomas Renninger <trenn@suse.de>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Len Brown <lenb@kernel.org>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/cell/cbe_cpufreq_pmi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/cbe_cpufreq_pmi.c b/arch/powerpc/platforms/cell/cbe_cpufreq_pmi.c index 69288f653144..3233fe84d158 100644 --- a/arch/powerpc/platforms/cell/cbe_cpufreq_pmi.c +++ b/arch/powerpc/platforms/cell/cbe_cpufreq_pmi.c | |||
@@ -96,6 +96,12 @@ static int pmi_notifier(struct notifier_block *nb, | |||
96 | struct cpufreq_frequency_table *cbe_freqs; | 96 | struct cpufreq_frequency_table *cbe_freqs; |
97 | u8 node; | 97 | u8 node; |
98 | 98 | ||
99 | /* Should this really be called for CPUFREQ_ADJUST, CPUFREQ_INCOMPATIBLE | ||
100 | * and CPUFREQ_NOTIFY policy events?) | ||
101 | */ | ||
102 | if (event == CPUFREQ_START) | ||
103 | return 0; | ||
104 | |||
99 | cbe_freqs = cpufreq_frequency_get_table(policy->cpu); | 105 | cbe_freqs = cpufreq_frequency_get_table(policy->cpu); |
100 | node = cbe_cpu_to_node(policy->cpu); | 106 | node = cbe_cpu_to_node(policy->cpu); |
101 | 107 | ||