diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-27 11:37:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 10:05:41 +0100 |
commit | 1c9688a9a11c08eabd6443d8bb9ccd439dce82e5 (patch) | |
tree | 2f4273586dfad3a141174e7d479f11196bced263 /cpukit/score/include/rtems/score/schedulernodeimpl.h | |
parent | score: Simplify _Scheduler_SMP_Node_change_state() (diff) | |
download | rtems-1c9688a9a11c08eabd6443d8bb9ccd439dce82e5.tar.bz2 |
score: Add _Scheduler_Node_get_scheduler()
Update #2556.
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulernodeimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulernodeimpl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/schedulernodeimpl.h b/cpukit/score/include/rtems/score/schedulernodeimpl.h index cf096aae13..f590131367 100644 --- a/cpukit/score/include/rtems/score/schedulernodeimpl.h +++ b/cpukit/score/include/rtems/score/schedulernodeimpl.h @@ -16,6 +16,7 @@ #define _RTEMS_SCORE_SCHEDULERNODEIMPL_H #include <rtems/score/schedulernode.h> +#include <rtems/score/priorityimpl.h> struct Scheduler_Control; @@ -55,6 +56,13 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Node_do_initialize( #endif } +RTEMS_INLINE_ROUTINE const Scheduler_Control *_Scheduler_Node_get_scheduler( + const Scheduler_Node *node +) +{ + return _Priority_Get_scheduler( &node->Wait.Priority ); +} + RTEMS_INLINE_ROUTINE Thread_Control *_Scheduler_Node_get_owner( const Scheduler_Node *node ) |