powerpc/smp: smp_ops->kick_cpu() should be able to fail
authorMichael Ellerman <michael@ozlabs.org>
Mon, 11 Apr 2011 21:46:19 +0000 (21:46 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 20 Apr 2011 07:01:18 +0000 (17:01 +1000)
commitde300974761d92f71cb583730ac9e1d4eb1b7156
treebfce8daf1dec8dff5af215bcf7647f38632490d4
parent6c5b59b913874cae535a324a671b7ed4f17e6397
powerpc/smp: smp_ops->kick_cpu() should be able to fail

When we start a cpu we use smp_ops->kick_cpu(), which currently
returns void, it should be able to fail. Convert it to return
int, and update all uses.

Convert all the current error cases to return -ENOENT, which is
what would eventually be returned by __cpu_up() currently when
it doesn't detect the cpu as coming up in time.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
12 files changed:
arch/powerpc/include/asm/machdep.h
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/smp.c
arch/powerpc/platforms/44x/iss4xx.c
arch/powerpc/platforms/85xx/smp.c
arch/powerpc/platforms/86xx/mpc86xx_smp.c
arch/powerpc/platforms/cell/beat_smp.c
arch/powerpc/platforms/cell/smp.c
arch/powerpc/platforms/chrp/smp.c
arch/powerpc/platforms/iseries/smp.c
arch/powerpc/platforms/powermac/smp.c
arch/powerpc/platforms/pseries/smp.c