Skip to content

Commit

Permalink
arch/tile: implement panic_smp_self_stop()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Metcalf committed Apr 2, 2012
1 parent 8c92ba6 commit cb210ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/tile/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cb210ee

Please sign in to comment.