summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-04 15:37:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-09 15:27:28 +0100
commit16b14cfdf8d2e5b6087e8bc955e94d61d871630d (patch)
tree1c61efd6ae887d0ab5f2bc6854cc73f8df00be27
parentmpci: Use the first scheduler for MPCI (diff)
downloadrtems-16b14cfdf8d2e5b6087e8bc955e94d61d871630d.tar.bz2
score: Fix _MRSP_Initialize()
The ceiling priorities must be initialized by scheduler index. Do not confuse it with a processor index.
-rw-r--r--cpukit/score/include/rtems/score/mrspimpl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/include/rtems/score/mrspimpl.h b/cpukit/score/include/rtems/score/mrspimpl.h
index 96d88ad788..6b00af4fd0 100644
--- a/cpukit/score/include/rtems/score/mrspimpl.h
+++ b/cpukit/score/include/rtems/score/mrspimpl.h
@@ -209,13 +209,13 @@ RTEMS_INLINE_ROUTINE Status_Control _MRSP_Initialize(
}
for ( i = 0 ; i < scheduler_count ; ++i ) {
- const Scheduler_Control *scheduler_of_cpu;
+ const Scheduler_Control *scheduler_of_index;
- scheduler_of_cpu = _Scheduler_Get_by_CPU_index( i );
+ scheduler_of_index = &_Scheduler_Table[ i ];
- if ( scheduler != scheduler_of_cpu ) {
+ if ( scheduler != scheduler_of_index ) {
mrsp->ceiling_priorities[ i ] =
- _Scheduler_Map_priority( scheduler_of_cpu, 0 );
+ _Scheduler_Map_priority( scheduler_of_index, 0 );
} else {
mrsp->ceiling_priorities[ i ] = ceiling_priority;
}