summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/src/exshutdown.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-17 10:10:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-19 09:59:39 +0100
commit8a6de83fd833c4b0458ba27eb4883c53c1b1ecf4 (patch)
treeea45e29f7ca5cab0a54ad005e93f942079442814 /cpukit/sapi/src/exshutdown.c
parentscore: Disable ISR in _Internal_error_Occurred() (diff)
downloadrtems-8a6de83fd833c4b0458ba27eb4883c53c1b1ecf4.tar.bz2
score: Move _SMP_Request_other_cores_to_shutdown()
Move _SMP_Request_other_cores_to_shutdown() invocation from rtems_shutdown_executive() to _Internal_error_Occurred() to allow a proper shutdown on SMP configurations even in the error case.
Diffstat (limited to 'cpukit/sapi/src/exshutdown.c')
-rw-r--r--cpukit/sapi/src/exshutdown.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/cpukit/sapi/src/exshutdown.c b/cpukit/sapi/src/exshutdown.c
index 41ee537e44..80848f0953 100644
--- a/cpukit/sapi/src/exshutdown.c
+++ b/cpukit/sapi/src/exshutdown.c
@@ -17,10 +17,6 @@
#include <rtems/score/sysstate.h>
#include <rtems/score/interr.h>
-#if defined(RTEMS_SMP)
- #include <rtems/score/smp.h>
-#endif
-
void rtems_shutdown_executive( uint32_t result )
{
Internal_errors_Source source;
@@ -28,10 +24,6 @@ void rtems_shutdown_executive( uint32_t result )
Internal_errors_t code;
if ( _System_state_Is_up( _System_state_Get() ) ) {
- #if defined(RTEMS_SMP)
- _SMP_Request_other_cores_to_shutdown();
- #endif
-
source = RTEMS_FATAL_SOURCE_EXIT;
is_internal = false;
code = result;