Skip to content

Commit cb210ee

Browse files
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 <cmetcalf@tilera.com>
1 parent 8c92ba6 commit cb210ee

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎arch/tile/kernel/smp.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ void smp_send_stop(void)
113113
send_IPI_allbutself(MSG_TAG_STOP_CPU);
114114
}
115115

116+
/* On panic, just wait; we may get an smp_send_stop() later on. */
117+
void panic_smp_self_stop(void)
118+
{
119+
while (1)
120+
asm("nap; nop");
121+
}
116122

117123
/*
118124
* Dispatch code called from hv_message_intr() for HV_MSG_TILE hv messages.

0 commit comments

Comments
 (0)