diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-21 14:15:30 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 10:05:43 +0100 |
commit | 73a193fdd672486f57ec6db5f9beb50e5264ffac (patch) | |
tree | cfcb3062495b14e65d156481da1c8d6d1a69009e /cpukit/score/include/rtems/score/schedulerimpl.h | |
parent | score: First part of new MrsP implementation (diff) | |
download | rtems-73a193fdd672486f57ec6db5f9beb50e5264ffac.tar.bz2 |
score: Delete unused functions
Delete _Scheduler_Thread_change_resource_root() and
_Scheduler_Thread_change_help_state().
Update #2556.
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulerimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulerimpl.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/cpukit/score/include/rtems/score/schedulerimpl.h b/cpukit/score/include/rtems/score/schedulerimpl.h index 92b08e5bde..b179f6794d 100644 --- a/cpukit/score/include/rtems/score/schedulerimpl.h +++ b/cpukit/score/include/rtems/score/schedulerimpl.h @@ -1068,48 +1068,6 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Thread_change_state( the_thread->Scheduler.state = new_state; } -/** - * @brief Changes the scheduler help state of a thread. - * - * @param[in] the_thread The thread. - * @param[in] new_help_state The new help state. - * - * @return The previous help state. - */ -RTEMS_INLINE_ROUTINE Scheduler_Help_state _Scheduler_Thread_change_help_state( - Thread_Control *the_thread, - Scheduler_Help_state new_help_state -) -{ - Scheduler_Node *node = _Thread_Scheduler_get_own_node( the_thread ); - Scheduler_Help_state previous_help_state = node->help_state; - - node->help_state = new_help_state; - - return previous_help_state; -} - -/** - * @brief Changes the resource tree root of a thread. - * - * For each node of the resource sub-tree specified by the top thread the - * scheduler asks for help. So the root thread gains access to all scheduler - * nodes corresponding to the resource sub-tree. In case a thread previously - * granted help is displaced by this operation, then the scheduler asks for - * help using its remaining resource tree. - * - * The run-time of this function depends on the size of the resource sub-tree - * and other resource trees in case threads in need for help are produced - * during this operation. - * - * @param[in] top The thread specifying the resource sub-tree top. - * @param[in] root The thread specifying the new resource sub-tree root. - */ -void _Scheduler_Thread_change_resource_root( - Thread_Control *top, - Thread_Control *root -); - RTEMS_INLINE_ROUTINE void _Scheduler_Set_idle_thread( Scheduler_Node *node, Thread_Control *idle |