diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-29 14:17:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-23 11:00:28 +0100 |
commit | 4d90289e7169ad96137b7b92b7f05d25bd82ab08 (patch) | |
tree | 2c4257fcc332ba8e6793258b837b4c1141420109 /cpukit/score/src/schedulerpriorityaffinitysmp.c | |
parent | score: Remove victim thread from CPU allocation (diff) | |
download | rtems-4d90289e7169ad96137b7b92b7f05d25bd82ab08.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/schedulerpriorityaffinitysmp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpukit/score/src/schedulerpriorityaffinitysmp.c b/cpukit/score/src/schedulerpriorityaffinitysmp.c index 63d9ae47b1..9a71dfd1ae 100644 --- a/cpukit/score/src/schedulerpriorityaffinitysmp.c +++ b/cpukit/score/src/schedulerpriorityaffinitysmp.c @@ -192,8 +192,7 @@ void _Scheduler_priority_affinity_SMP_Block( _Scheduler_priority_affinity_SMP_Get_highest_ready, _Scheduler_priority_SMP_Move_from_ready_to_scheduled, _Scheduler_SMP_Allocate_processor_exact, - _Scheduler_priority_SMP_Get_idle, - _Scheduler_priority_SMP_Release_idle + _Scheduler_priority_SMP_Get_idle ); /* @@ -528,8 +527,7 @@ void _Scheduler_priority_affinity_SMP_Withdraw_node( _Scheduler_priority_affinity_SMP_Get_highest_ready, _Scheduler_priority_SMP_Move_from_ready_to_scheduled, _Scheduler_SMP_Allocate_processor_lazy, - _Scheduler_priority_SMP_Get_idle, - _Scheduler_priority_SMP_Release_idle + _Scheduler_priority_SMP_Get_idle ); } |