[rtems commit] score: Delete Scheduler_Node::accepts_help
Sebastian Huber
sebh at rtems.org
Wed Nov 2 09:10:23 UTC 2016
Module: rtems
Branch: master
Commit: b5f1b249028ea2be69a4ad06aa822c16cb4ac57e
Changeset: http://git.rtems.org/rtems/commit/?id=b5f1b249028ea2be69a4ad06aa822c16cb4ac57e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Oct 31 08:04:07 2016 +0100
score: Delete Scheduler_Node::accepts_help
Update #2556.
---
cpukit/score/include/rtems/score/schedulernode.h | 6 ------
cpukit/score/include/rtems/score/schedulernodeimpl.h | 1 -
cpukit/score/include/rtems/score/schedulersmpimpl.h | 7 +------
3 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/cpukit/score/include/rtems/score/schedulernode.h b/cpukit/score/include/rtems/score/schedulernode.h
index e27c4a3..09d03d4 100644
--- a/cpukit/score/include/rtems/score/schedulernode.h
+++ b/cpukit/score/include/rtems/score/schedulernode.h
@@ -108,12 +108,6 @@ struct Scheduler_Node {
#if defined(RTEMS_SMP)
/**
- * @brief The thread accepting help by this node in case the help state is
- * not SCHEDULER_HELP_YOURSELF.
- */
- struct _Thread_Control *accepts_help;
-
- /**
* @brief Block to register and manage this scheduler node in the thread
* control block of the owner of this scheduler node.
*/
diff --git a/cpukit/score/include/rtems/score/schedulernodeimpl.h b/cpukit/score/include/rtems/score/schedulernodeimpl.h
index 62c2fab..009ad8f 100644
--- a/cpukit/score/include/rtems/score/schedulernodeimpl.h
+++ b/cpukit/score/include/rtems/score/schedulernodeimpl.h
@@ -47,7 +47,6 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Node_do_initialize(
node->Wait.Priority.scheduler = scheduler;
node->user = the_thread;
node->idle = NULL;
- node->accepts_help = the_thread;
_SMP_sequence_lock_Initialize( &node->Priority.Lock );
#else
(void) scheduler;
diff --git a/cpukit/score/include/rtems/score/schedulersmpimpl.h b/cpukit/score/include/rtems/score/schedulersmpimpl.h
index 67f1595..ea7d88b 100644
--- a/cpukit/score/include/rtems/score/schedulersmpimpl.h
+++ b/cpukit/score/include/rtems/score/schedulersmpimpl.h
@@ -1022,12 +1022,7 @@ static inline Thread_Control *_Scheduler_SMP_Unblock(
_Assert( node_state == SCHEDULER_SMP_NODE_READY );
_Assert( node->sticky_level > 0 );
_Assert( node->idle == NULL );
-
- if ( node->accepts_help == thread ) {
- needs_help = thread;
- } else {
- needs_help = NULL;
- }
+ needs_help = thread;
}
} else {
needs_help = NULL;
More information about the vc
mailing list