forked from Imagelibrary/rtems
@@ -107,12 +107,6 @@ struct Scheduler_Node {
|
||||
struct _Thread_Control *owner;
|
||||
|
||||
#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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user