On Fri, Feb 11, 2011 at 8:19 AM, Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx> > --- > 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html