Re: [PATCH 6/6] ARM: pm: allow generic sleep code to be used with SMP CPU idle

Colin Cross
2011-02-13T21:59:59Z

On Fri, Feb 11, 2011 at 8:19 AM, Russell King - ARM Linux
<linux@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@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.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html