summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/schedulersmpimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-10-21 14:41:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-02 10:05:44 +0100
commit0e754facf49586b4477e07883d3a3a97f99cd57f (patch)
treed404ac3f650b776240dd4aac064d266bb807005b /cpukit/score/include/rtems/score/schedulersmpimpl.h
parentscore: Simplify update priority scheduler op (diff)
downloadrtems-0e754facf49586b4477e07883d3a3a97f99cd57f.tar.bz2
score: Delete unused scheduler ask for help X op
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulersmpimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/schedulersmpimpl.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/cpukit/score/include/rtems/score/schedulersmpimpl.h b/cpukit/score/include/rtems/score/schedulersmpimpl.h
index 0846d496fc..6c3a4098fa 100644
--- a/cpukit/score/include/rtems/score/schedulersmpimpl.h
+++ b/cpukit/score/include/rtems/score/schedulersmpimpl.h
@@ -1069,61 +1069,6 @@ static inline void _Scheduler_SMP_Update_priority(
}
}
-static inline Thread_Control *_Scheduler_SMP_Ask_for_help_X(
- Scheduler_Context *context,
- Thread_Control *offers_help,
- Thread_Control *needs_help,
- Scheduler_SMP_Enqueue enqueue_fifo
-)
-{
- Scheduler_SMP_Node *node = _Scheduler_SMP_Thread_get_own_node( offers_help );
- Thread_Control *next_needs_help = NULL;
- Thread_Control *previous_accepts_help;
-
- previous_accepts_help = node->Base.accepts_help;
- node->Base.accepts_help = needs_help;
-
- switch ( node->state ) {
- case SCHEDULER_SMP_NODE_READY:
- next_needs_help =
- _Scheduler_Ask_ready_node_for_help( &node->Base, needs_help );
- break;
- case SCHEDULER_SMP_NODE_SCHEDULED:
- next_needs_help = _Scheduler_Ask_scheduled_node_for_help(
- context,
- &node->Base,
- offers_help,
- needs_help,
- previous_accepts_help,
- _Scheduler_SMP_Release_idle_thread
- );
- break;
- case SCHEDULER_SMP_NODE_BLOCKED:
- if (
- _Scheduler_Ask_blocked_node_for_help(
- context,
- &node->Base,
- offers_help,
- needs_help
- )
- ) {
- _Scheduler_SMP_Node_change_state(
- &node->Base,
- SCHEDULER_SMP_NODE_READY
- );
-
- next_needs_help = ( *enqueue_fifo )(
- context,
- &node->Base,
- needs_help
- );
- }
- break;
- }
-
- return next_needs_help;
-}
-
static inline Thread_Control *_Scheduler_SMP_Yield(
Scheduler_Context *context,
Thread_Control *thread,