[POWERPC] Wrap cpu_die() with CONFIG_HOTPLUG_CPU
Per email discussion, it appears that rtas_stop_self() and pSeries_mach_cpu_die() should not be compiled if CONFIG_HOTPLUG_CPU is not defined. This patch adds #ifdefs around these bits of code. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
5873c9bdb0
commit
088df4d256
@@ -347,6 +347,7 @@ static int __init pSeries_init_panel(void)
|
||||
}
|
||||
arch_initcall(pSeries_init_panel);
|
||||
|
||||
#ifdef CONFIG_HOTPLUG_CPU
|
||||
static void pSeries_mach_cpu_die(void)
|
||||
{
|
||||
local_irq_disable();
|
||||
@@ -357,6 +358,9 @@ static void pSeries_mach_cpu_die(void)
|
||||
BUG();
|
||||
for(;;);
|
||||
}
|
||||
#else
|
||||
#define pSeries_mach_cpu_die NULL
|
||||
#endif
|
||||
|
||||
static int pseries_set_dabr(unsigned long dabr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user