[PATCH 6/6] ARM: pm: allow generic sleep code to be used with SMP CPU idle
Colin Cross
ccross at google.com
Sun Feb 13 16:59:54 EST 2011
On Fri, Feb 11, 2011 at 8:19 AM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> Allow the generic sleep code to be used with SMP CPU idle by storing
> N CPU stack pointers rather than just one.
>
> Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
> ---
> arch/arm/kernel/sleep.S | 26 +++++++++++++++++++++++++-
> 1 files changed, 25 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/kernel/sleep.S b/arch/arm/kernel/sleep.S
> index 9f106fa..e10618f 100644
> --- a/arch/arm/kernel/sleep.S
> +++ b/arch/arm/kernel/sleep.S
<snip>
> @@ -107,4 +129,6 @@ ENTRY(cpu_resume)
> ENDPROC(cpu_resume)
>
> sleep_save_sp:
> - .word 0 @ preserve stack phys ptr here
> + .rept CONFIG_NR_CPUS
> + .long 0 @ preserve stack phys ptr here
> + .endr
This doesn't compile on CONFIG_SMP=n, CONFIG_NR_CPUS is undefined.
Including linux/threads.h will provide a default definition.
More information about the linux-arm-kernel
mailing list