mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 03:48:00 +08:00
score: Simplify check for migrations
This commit is contained in:
@@ -345,31 +345,15 @@ static void _Scheduler_priority_affinity_SMP_Check_for_migrations(
|
||||
* in the ready set, then we need to swap them out.
|
||||
*/
|
||||
|
||||
_Scheduler_SMP_Node_change_state(
|
||||
_Scheduler_SMP_Node_downcast( lowest_scheduled ),
|
||||
SCHEDULER_SMP_NODE_READY
|
||||
);
|
||||
_Scheduler_Thread_change_state(
|
||||
_Scheduler_Node_get_user( lowest_scheduled ),
|
||||
THREAD_SCHEDULER_READY
|
||||
);
|
||||
|
||||
_Scheduler_SMP_Allocate_processor(
|
||||
_Scheduler_priority_SMP_Extract_from_ready( context, highest_ready );
|
||||
_Scheduler_SMP_Enqueue_to_scheduled(
|
||||
context,
|
||||
highest_ready,
|
||||
lowest_scheduled,
|
||||
_Scheduler_SMP_Insert_scheduled_fifo,
|
||||
_Scheduler_priority_SMP_Move_from_scheduled_to_ready,
|
||||
_Scheduler_SMP_Allocate_processor_exact
|
||||
);
|
||||
|
||||
_Scheduler_priority_SMP_Move_from_ready_to_scheduled(
|
||||
context,
|
||||
highest_ready
|
||||
);
|
||||
|
||||
_Scheduler_priority_SMP_Move_from_scheduled_to_ready(
|
||||
context,
|
||||
lowest_scheduled
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user