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/schedulerstrongapa.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cpukit/score/src/schedulerstrongapa.c') diff --git a/cpukit/score/src/schedulerstrongapa.c b/cpukit/score/src/schedulerstrongapa.c index 265ef1a797..c897652320 100644 --- a/cpukit/score/src/schedulerstrongapa.c +++ b/cpukit/score/src/schedulerstrongapa.c @@ -920,8 +920,7 @@ void _Scheduler_strong_APA_Block( _Scheduler_strong_APA_Get_highest_ready, _Scheduler_strong_APA_Move_from_ready_to_scheduled, _Scheduler_strong_APA_Allocate_processor, - _Scheduler_strong_APA_Get_idle, - _Scheduler_strong_APA_Release_idle + _Scheduler_strong_APA_Get_idle ); } @@ -1014,8 +1013,7 @@ void _Scheduler_strong_APA_Withdraw_node( _Scheduler_strong_APA_Get_highest_ready, _Scheduler_strong_APA_Move_from_ready_to_scheduled, _Scheduler_strong_APA_Allocate_processor, - _Scheduler_strong_APA_Get_idle, - _Scheduler_strong_APA_Release_idle + _Scheduler_strong_APA_Get_idle ); } -- cgit v1.2.3