]> git.karo-electronics.de Git - mv-sheeva.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>
Mon, 2 Apr 2012 16:13:32 +0000 (12:13 -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 7b6df8c2770952cd6ae2d97c41160c29902c3d13..91da0f721958da44d91ea08c526228c6c9a015e6 100644 (file)
@@ -113,6 +113,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.