Changeset 1ac0b083 in rtems


Ignore:
Timestamp:
May 16, 2014, 8:55:01 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
39840438
Parents:
b532bb2c
git-author:
Sebastian Huber <sebastian.huber@…> (05/16/14 08:55:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/16/14 08:56:49)
Message:

score: Simplify SMP scheduler support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/schedulersmpimpl.h

    rb532bb2c r1ac0b083  
    461461  _Assert( lowest_scheduled != NULL);
    462462
    463   /*
    464    * NOTE: Do not exchange parameters to do the negation of the order check.
    465    */
    466463  if ( ( *order )( &thread->Object.Node, &lowest_scheduled->Object.Node ) ) {
    467464    Scheduler_SMP_Node *lowest_scheduled_node =
     
    514511   * The thread has been extracted from the scheduled chain.  We have to place
    515512   * it now on the scheduled or ready set.
    516    *
    517    * NOTE: Do not exchange parameters to do the negation of the order check.
    518513   */
    519   if ( !( *order )( &thread->Object.Node, &highest_ready->Object.Node ) ) {
     514  if ( ( *order )( &thread->Object.Node, &highest_ready->Object.Node ) ) {
     515    ( *insert_scheduled )( &self->Base, thread );
     516  } else {
    520517    _Scheduler_SMP_Node_change_state( node, SCHEDULER_SMP_NODE_READY );
    521518    _Scheduler_SMP_Allocate_processor( self, highest_ready, thread );
    522519    ( *insert_ready )( &self->Base, thread );
    523520    ( *move_from_ready_to_scheduled )( &self->Base, highest_ready );
    524   } else {
    525     ( *insert_scheduled )( &self->Base, thread );
    526521  }
    527522}
Note: See TracChangeset for help on using the changeset viewer.