Changeset 9c238e1 in rtems for testsuites/smptests


Ignore:
Timestamp:
Oct 21, 2016, 12:33:01 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0e754fac
Parents:
97f7dac
git-author:
Sebastian Huber <sebastian.huber@…> (10/21/16 12:33:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/02/16 09:05:44)
Message:

score: Simplify update priority scheduler op

Remove unused return status.

File:
1 edited

Legend:

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

    r97f7dac r9c238e1  
    200200}
    201201
    202 static Thread_Control *update_priority_op(
     202static void update_priority_op(
    203203  Thread_Control *thread,
    204204  Scheduler_SMP_Node *scheduler_node,
     
    210210  ISR_lock_Context state_lock_context;
    211211  ISR_lock_Context scheduler_lock_context;
    212   Thread_Control *needs_help;
    213212  Thread_queue_Context queue_context;
    214213
     
    219218  _Scheduler_Acquire_critical( scheduler, &scheduler_lock_context );
    220219
    221   needs_help = (*scheduler->Operations.update_priority)(
     220  (*scheduler->Operations.update_priority)(
    222221    scheduler,
    223222    thread,
     
    227226  _Scheduler_Release_critical( scheduler, &scheduler_lock_context );
    228227  _Thread_State_release( thread, &state_lock_context );
    229 
    230   return needs_help;
    231228}
    232229
     
    241238)
    242239{
    243   Thread_Control *needs_help;
    244240  Per_CPU_Control *cpu_self;
    245241
     
    259255  rtems_test_assert(executing_node->state == start_state);
    260256
    261   needs_help = update_priority_op(executing, executing_node, prio, prepend_it);
     257  update_priority_op(executing, executing_node, prio, prepend_it);
    262258  rtems_test_assert(executing_node->state == new_state);
    263259
     
    265261    switch (start_state) {
    266262      case SCHEDULER_SMP_NODE_SCHEDULED:
    267         rtems_test_assert(needs_help == executing);
     263        rtems_test_assert(cpu_self->heir == other);
    268264        break;
    269265      case SCHEDULER_SMP_NODE_READY:
    270         rtems_test_assert(needs_help == other);
     266        rtems_test_assert(cpu_self->heir == executing);
    271267        break;
    272268      default:
     
    274270        break;
    275271    }
    276   } else {
    277     rtems_test_assert(needs_help == NULL);
    278272  }
    279273
Note: See TracChangeset for help on using the changeset viewer.