Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] Fix build breakage with CONFIG_PPC32

low_cpu_die is called from the CPU hotplug code on 32-bit powermacs,
but it is only defined if CONFIG_PM || CONFIG_CPU_FREQ_PMAC. This
changes the ifdef so it is defined for CONFIG_HOTPLUG_CPU on 32-bit
machines.

Signed-off-by: Srinivasa DS <srinivasa@in.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Srinivasa Ds and committed by
Paul Mackerras
7f8c4c50 c3386e40

+2 -1
+2 -1
arch/powerpc/platforms/powermac/sleep.S
··· 45 45 .section .text 46 46 .align 5 47 47 48 - #if defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ_PMAC) 48 + #if defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ_PMAC) || \ 49 + (defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC32)) 49 50 50 51 /* This gets called by via-pmu.c late during the sleep process. 51 52 * The PMU was already send the sleep command and will shut us down