From: Chris Metcalf Date: Thu, 29 Mar 2012 19:59:11 +0000 (-0400) Subject: arch/tile: implement panic_smp_self_stop() X-Git-Tag: next-20120402~50^2~20 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0f1581229866cef0006e759bc0b7d824fb362ec2;p=karo-tx-linux.git arch/tile: implement panic_smp_self_stop() This allows the later-panicking tiles to wait in a lower power state until they get interrupted with an smp_send_stop(). Signed-off-by: Chris Metcalf --- diff --git a/arch/tile/kernel/smp.c b/arch/tile/kernel/smp.c index f86887aebaad..5b46a125a65d 100644 --- a/arch/tile/kernel/smp.c +++ b/arch/tile/kernel/smp.c @@ -132,6 +132,12 @@ void smp_send_stop(void) send_IPI_allbutself(MSG_TAG_STOP_CPU); } +/* On panic, just wait; we may get an smp_send_stop() later on. */ +void panic_smp_self_stop(void) +{ + while (1) + asm("nap; nop"); +} /* * Dispatch code called from hv_message_intr() for HV_MSG_TILE hv messages.