]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arch/tile: implement panic_smp_self_stop()
authorChris Metcalf <cmetcalf@tilera.com>
Thu, 29 Mar 2012 19:59:11 +0000 (15:59 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 30 Mar 2012 22:56:40 +0000 (18:56 -0400)
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 <cmetcalf@tilera.com>
arch/tile/kernel/smp.c

index f86887aebaad9f7a4a509f1e453478592fcd8dfe..5b46a125a65dc7090f7bd43de770c20a2a740506 100644 (file)
@@ -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.