summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r--cpukit/score/src/smp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index 0f632236b7..e56073d281 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -73,6 +73,14 @@ void _SMP_Request_shutdown( void )
Per_CPU_Control *self_cpu = _Per_CPU_Get_by_index( self );
_Per_CPU_State_change( self_cpu, PER_CPU_STATE_SHUTDOWN );
+
+ /*
+ * We have to drop the Giant lock here in order to give other processors the
+ * opportunity to receive the inter-processor interrupts issued previously.
+ * In case the executing thread still holds SMP locks, then other processors
+ * already waiting for this SMP lock will spin forever.
+ */
+ _Giant_Drop( self );
}
void _SMP_Send_message( uint32_t cpu, uint32_t message )