diff options
author | Olof Johansson <olof@lixom.net> | 2007-10-09 20:38:24 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-11 07:06:06 -0400 |
commit | 64f2758514e3bad19cab03d22851ab37654399a4 (patch) | |
tree | 7d765fb33cf7aeed8bbf17d5cbb07bd78dc1a33d /arch/powerpc | |
parent | 84dd4676f5519b86aee3bfaf1b230be2cb43f69b (diff) |
[POWERPC] Don't enable cpu hotplug on pSeries machines with MPIC
Don't allow cpu hotplug on systems lacking XICS interrupt controller
(i.e. with an MPIC interrupt controller), since the current pSeries
platform code is hardcoded for XICS.
This works around the bug reported by Paul Mackerras where the
disable_nonboot_cpus() call recently added to the shutdown path will
cause an oops on older pSeries machines.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/pseries/hotplug-cpu.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c b/arch/powerpc/platforms/pseries/hotplug-cpu.c index 9711eb0d5496..fc48b96c81bf 100644 --- a/arch/powerpc/platforms/pseries/hotplug-cpu.c +++ b/arch/powerpc/platforms/pseries/hotplug-cpu.c | |||
@@ -252,6 +252,20 @@ static struct notifier_block pseries_smp_nb = { | |||
252 | 252 | ||
253 | static int __init pseries_cpu_hotplug_init(void) | 253 | static int __init pseries_cpu_hotplug_init(void) |
254 | { | 254 | { |
255 | struct device_node *np; | ||
256 | const char *typep; | ||
257 | |||
258 | for_each_node_by_name(np, "interrupt-controller") { | ||
259 | typep = of_get_property(np, "compatible", NULL); | ||
260 | if (strstr(typep, "open-pic")) { | ||
261 | of_node_put(np); | ||
262 | |||
263 | printk(KERN_INFO "CPU Hotplug not supported on " | ||
264 | "systems using MPIC\n"); | ||
265 | return 0; | ||
266 | } | ||
267 | } | ||
268 | |||
255 | rtas_stop_self_args.token = rtas_token("stop-self"); | 269 | rtas_stop_self_args.token = rtas_token("stop-self"); |
256 | qcss_tok = rtas_token("query-cpu-stopped-state"); | 270 | qcss_tok = rtas_token("query-cpu-stopped-state"); |
257 | 271 | ||