Changeset 72e0bdb in rtems for testsuites/smptests


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

score: Pass scheduler node to unblock operation

Changed for consistency with other scheduler operations.

Update #2556.

File:
1 edited

Legend:

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

    re382a1b r72e0bdb  
    480480}
    481481
    482 static Thread_Control *unblock_op(Thread_Control *thread)
     482static Thread_Control *unblock_op(
     483  Thread_Control *thread,
     484  Scheduler_SMP_Node *scheduler_node
     485)
    483486{
    484487  const Scheduler_Control *scheduler;
     
    491494  _Scheduler_Acquire_critical( scheduler, &scheduler_lock_context );
    492495
    493   needs_help = (*scheduler->Operations.unblock)(scheduler, thread);
     496  needs_help = (*scheduler->Operations.unblock)(
     497    scheduler,
     498    thread,
     499    &scheduler_node->Base
     500  );
    494501
    495502  _Scheduler_Release_critical( scheduler, &scheduler_lock_context );
     
    528535  rtems_test_assert(executing_node->state == SCHEDULER_SMP_NODE_BLOCKED);
    529536
    530   needs_help = unblock_op(executing);
     537  needs_help = unblock_op(executing, executing_node);
    531538  rtems_test_assert(executing_node->state == new_state);
    532539
Note: See TracChangeset for help on using the changeset viewer.