diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-31 08:22:02 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 10:05:45 +0100 |
commit | 7f7424329eafab755381bc638c2cdddc152a909b (patch) | |
tree | e0daf5ad4cfee57c14c7f2710aabd506a6868033 /cpukit/score/include/rtems/score/mrspimpl.h | |
parent | score: Delete Thread_Scheduler_control::node (diff) | |
download | rtems-7f7424329eafab755381bc638c2cdddc152a909b.tar.bz2 |
score: Delete Thread_Scheduler_control::own_node
Update #2556.
Diffstat (limited to 'cpukit/score/include/rtems/score/mrspimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/mrspimpl.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/mrspimpl.h b/cpukit/score/include/rtems/score/mrspimpl.h index 4b4e8c3c67..9555197672 100644 --- a/cpukit/score/include/rtems/score/mrspimpl.h +++ b/cpukit/score/include/rtems/score/mrspimpl.h @@ -100,16 +100,19 @@ RTEMS_INLINE_ROUTINE Status_Control _MRSP_Raise_priority( ISR_lock_Context lock_context; const Scheduler_Control *scheduler; Priority_Control ceiling_priority; - Scheduler_Node *own_node; + Scheduler_Node *scheduler_node; _Thread_queue_Context_clear_priority_updates( queue_context ); _Thread_Wait_acquire_default_critical( thread, &lock_context ); scheduler = _Scheduler_Get_own( thread ); - own_node = _Thread_Scheduler_get_own_node( thread ); + scheduler_node = _Thread_Scheduler_get_home_node( thread ); ceiling_priority = _MRSP_Get_priority( mrsp, scheduler ); - if ( ceiling_priority <= own_node->Wait.Priority.Node.priority ) { + if ( + ceiling_priority + <= _Priority_Get_priority( &scheduler_node->Wait.Priority ) + ) { _Priority_Node_initialize( priority_node, ceiling_priority ); _Thread_Priority_add( thread, priority_node, queue_context ); status = STATUS_SUCCESSFUL; |