[PATCH v2] fix multiple bugs in rtas_ibm_suspend_me code

Paul Mackerras paulus at samba.org
Tue Nov 13 16:11:49 EST 2007


Nathan Lynch writes:

> There are several issues with the rtas_ibm_suspend_me code, which
> enables platform-assisted suspension of an LPAR for migration or
> hibernation as covered in PAPR 2.2.

On a uniprocessor configuration, with this patch I get:

  CC      arch/powerpc/kernel/rtas.o
/home/paulus/kernel/powerpc/arch/powerpc/kernel/rtas.c: In function ‘rtas_percpu_suspend_me’:
/home/paulus/kernel/powerpc/arch/powerpc/kernel/rtas.c:702: error: implicit declaration of function ‘get_hard_smp_processor_id’
make[2]: *** [arch/powerpc/kernel/rtas.o] Error 1

I think you need to #include <asm/smp.h> in rtas.c.

Paul.



More information about the Linuxppc-dev mailing list