diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-04 15:47:25 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-09 15:27:29 +0100 |
commit | f20dfa8fcd6fc0cdc66b16570b198872f61f5a8b (patch) | |
tree | 60babdf8b1c43e4cd5dcfd45c83253f6cb572777 | |
parent | score: Simplify _Scheduler_Get_by_id() (diff) | |
download | rtems-f20dfa8fcd6fc0cdc66b16570b198872f61f5a8b.tar.bz2 |
score: Avoid _Scheduler_Get_by_CPU_index( 0 )
Avoid use of processor index 0 which may have no scheduler assigned.
-rw-r--r-- | cpukit/score/include/rtems/score/coremuteximpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/coremuteximpl.h b/cpukit/score/include/rtems/score/coremuteximpl.h index 31d2a6e71b..e3da6a7737 100644 --- a/cpukit/score/include/rtems/score/coremuteximpl.h +++ b/cpukit/score/include/rtems/score/coremuteximpl.h @@ -237,7 +237,7 @@ _CORE_ceiling_mutex_Get_scheduler( #if defined(RTEMS_SMP) return the_mutex->scheduler; #else - return _Scheduler_Get_by_CPU_index( 0 ); + return &_Scheduler_Table[ 0 ]; #endif } |