projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c92ba6
)
arch/tile: implement panic_smp_self_stop()
author
Chris Metcalf
<cmetcalf@tilera.com>
Thu, 29 Mar 2012 19:59:11 +0000
(15:59 -0400)
committer
Chris 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/tile/kernel/smp.c
b/arch/tile/kernel/smp.c
index 7b6df8c2770952cd6ae2d97c41160c29902c3d13..91da0f721958da44d91ea08c526228c6c9a015e6 100644
(file)
--- a/
arch/tile/kernel/smp.c
+++ b/
arch/tile/kernel/smp.c
@@
-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.