From 4d90289e7169ad96137b7b92b7f05d25bd82ab08 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 29 Oct 2021 14:17:54 +0200 Subject: score: _Scheduler_SMP_Schedule_highest_ready() Simplify callers of _Scheduler_SMP_Schedule_highest_ready(). Move the node state change and the extraction from scheduled into _Scheduler_SMP_Schedule_highest_ready(). Move the idle thread release to the caller which have more information about the presence of an idle thread. Update #4531. --- cpukit/score/src/schedulersimplesmp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cpukit/score/src/schedulersimplesmp.c') diff --git a/cpukit/score/src/schedulersimplesmp.c b/cpukit/score/src/schedulersimplesmp.c index 086d00094d..ebbf00bbc4 100644 --- a/cpukit/score/src/schedulersimplesmp.c +++ b/cpukit/score/src/schedulersimplesmp.c @@ -213,8 +213,7 @@ void _Scheduler_simple_SMP_Block( _Scheduler_simple_SMP_Get_highest_ready, _Scheduler_simple_SMP_Move_from_ready_to_scheduled, _Scheduler_SMP_Allocate_processor_lazy, - _Scheduler_simple_SMP_Get_idle, - _Scheduler_simple_SMP_Release_idle + _Scheduler_simple_SMP_Get_idle ); } @@ -367,8 +366,7 @@ void _Scheduler_simple_SMP_Withdraw_node( _Scheduler_simple_SMP_Get_highest_ready, _Scheduler_simple_SMP_Move_from_ready_to_scheduled, _Scheduler_SMP_Allocate_processor_lazy, - _Scheduler_simple_SMP_Get_idle, - _Scheduler_simple_SMP_Release_idle + _Scheduler_simple_SMP_Get_idle ); } -- cgit v1.2.3