[rtems commit] score: Fix _MRSP_Initialize()
Sebastian Huber
sebh at rtems.org
Thu Nov 10 08:59:24 UTC 2016
Module: rtems
Branch: master
Commit: 16b14cfdf8d2e5b6087e8bc955e94d61d871630d
Changeset: http://git.rtems.org/rtems/commit/?id=16b14cfdf8d2e5b6087e8bc955e94d61d871630d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Nov 4 15:37:16 2016 +0100
score: Fix _MRSP_Initialize()
The ceiling priorities must be initialized by scheduler index. Do not
confuse it with a processor index.
---
cpukit/score/include/rtems/score/mrspimpl.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cpukit/score/include/rtems/score/mrspimpl.h b/cpukit/score/include/rtems/score/mrspimpl.h
index 96d88ad..6b00af4 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;
}
More information about the vc
mailing list