diff options
author | Deepthi Dharwar <deepthi@linux.vnet.ibm.com> | 2012-05-20 14:34:27 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-03 00:14:40 -0400 |
commit | 16aaaff68440dd95de98adb075303355814be6e0 (patch) | |
tree | f7ea14e9be10224e398aa8398ddd00db10ff112b /arch/powerpc/include | |
parent | 25ebc45b93452d0bc60271f178237123c4b26808 (diff) |
powerpc/pseries/cpuidle: Replace pseries_notify_cpuidle_add call with notifier
The following patch is to remove the pseries_notify_add_cpu() call
and replace it by a hot plug notifier.
This would prevent cpuidle resources being released and allocated each
time cpu comes online on pseries.
The earlier design was causing a lockdep problem
in start_secondary as reported on this thread
-https://lkml.org/lkml/2012/5/17/2
This applies on 3.4-rc7
Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/processor.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index 413a5eaef56c..53b6dfa83344 100644 --- a/arch/powerpc/include/asm/processor.h +++ b/arch/powerpc/include/asm/processor.h | |||
@@ -389,10 +389,8 @@ extern int powersave_nap; /* set if nap mode can be used in idle loop */ | |||
389 | 389 | ||
390 | #ifdef CONFIG_PSERIES_IDLE | 390 | #ifdef CONFIG_PSERIES_IDLE |
391 | extern void update_smt_snooze_delay(int snooze); | 391 | extern void update_smt_snooze_delay(int snooze); |
392 | extern int pseries_notify_cpuidle_add_cpu(int cpu); | ||
393 | #else | 392 | #else |
394 | static inline void update_smt_snooze_delay(int snooze) {} | 393 | static inline void update_smt_snooze_delay(int snooze) {} |
395 | static inline int pseries_notify_cpuidle_add_cpu(int cpu) { return 0; } | ||
396 | #endif | 394 | #endif |
397 | 395 | ||
398 | extern void flush_instruction_cache(void); | 396 | extern void flush_instruction_cache(void); |