Changeset 2df4abc in rtems for testsuites/smptests


Ignore:
Timestamp:
Oct 10, 2016, 12:01:55 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e382a1b
Parents:
501043a
git-author:
Sebastian Huber <sebastian.huber@…> (10/10/16 12:01:55)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/02/16 09:05:40)
Message:

score: Pass scheduler node to yield operation

Changed for consistency with other scheduler operations.

Update #2556.

File:
1 edited

Legend:

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

    r501043a r2df4abc  
    321321}
    322322
    323 static Thread_Control *yield_op(Thread_Control *thread)
     323static Thread_Control *yield_op(
     324  Thread_Control *thread,
     325  Scheduler_SMP_Node *scheduler_node
     326)
    324327{
    325328  const Scheduler_Control *scheduler;
     
    332335  _Scheduler_Acquire_critical( scheduler, &scheduler_lock_context );
    333336
    334   needs_help = (*scheduler->Operations.yield)(scheduler, thread);
     337  needs_help = (*scheduler->Operations.yield)(
     338    scheduler,
     339    thread,
     340    &scheduler_node->Base
     341  );
    335342
    336343  _Scheduler_Release_critical( scheduler, &scheduler_lock_context );
     
    392399  rtems_test_assert(executing_node->state == start_state);
    393400
    394   needs_help = yield_op(executing);
     401  needs_help = yield_op(executing, executing_node);
    395402  rtems_test_assert(executing_node->state == new_state);
    396403
Note: See TracChangeset for help on using the changeset viewer.