Changeset e382a1b in rtems for testsuites/smptests


Ignore:
Timestamp:
Oct 10, 2016, 12:33:17 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
72e0bdb
Parents:
2df4abc
git-author:
Sebastian Huber <sebastian.huber@…> (10/10/16 12:33:17)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/02/16 09:05:41)
Message:

score: Pass scheduler node to block operation

Changed for consistency with other scheduler operations.

Update #2556.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpscheduler03/init.c

    r2df4abc re382a1b  
    461461}
    462462
    463 static void block_op(Thread_Control *thread)
     463static void block_op(
     464  Thread_Control *thread,
     465  Scheduler_SMP_Node *scheduler_node
     466)
    464467{
    465468  const Scheduler_Control *scheduler;
     
    471474  _Scheduler_Acquire_critical( scheduler, &scheduler_lock_context );
    472475
    473   (*scheduler->Operations.block)(scheduler, thread);
     476  (*scheduler->Operations.block)(scheduler, thread, &scheduler_node->Base);
    474477
    475478  _Scheduler_Release_critical( scheduler, &scheduler_lock_context );
     
    522525  }
    523526
    524   block_op(executing);
     527  block_op(executing, executing_node);
    525528  rtems_test_assert(executing_node->state == SCHEDULER_SMP_NODE_BLOCKED);
    526529
Note: See TracChangeset for help on using the changeset viewer.