diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-02 16:24:05 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-03 10:17:38 +0100 |
commit | ca1e546e7772838b20d0792155e2c71514d6b5d3 (patch) | |
tree | a5af2d74d6fcefa8d36f0fa32debd886e63cca4b /cpukit/score/src/schedulerpriorityaffinitysmp.c | |
parent | sparc: Fix volatile clobber (diff) | |
download | rtems-ca1e546e7772838b20d0792155e2c71514d6b5d3.tar.bz2 |
score: Improve scheduler helping protocol
Only register ask for help requests in the scheduler unblock and yield
operations. The actual ask for help operation is carried out during
_Thread_Do_dispatch() on a processor related to the thread. This yields
a better separation of scheduler instances. A thread of one scheduler
instance should not be forced to carry out too much work for threads on
other scheduler instances.
Update #2556.
Diffstat (limited to 'cpukit/score/src/schedulerpriorityaffinitysmp.c')
-rw-r--r-- | cpukit/score/src/schedulerpriorityaffinitysmp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/score/src/schedulerpriorityaffinitysmp.c b/cpukit/score/src/schedulerpriorityaffinitysmp.c index 7689469c54..8b54295122 100644 --- a/cpukit/score/src/schedulerpriorityaffinitysmp.c +++ b/cpukit/score/src/schedulerpriorityaffinitysmp.c @@ -352,16 +352,15 @@ static void _Scheduler_priority_affinity_SMP_Check_for_migrations( /* * This is the public scheduler specific Unblock operation. */ -bool _Scheduler_priority_affinity_SMP_Unblock( +void _Scheduler_priority_affinity_SMP_Unblock( const Scheduler_Control *scheduler, Thread_Control *thread, Scheduler_Node *node ) { Scheduler_Context *context = _Scheduler_Get_context( scheduler ); - bool needs_help; - needs_help = _Scheduler_SMP_Unblock( + _Scheduler_SMP_Unblock( context, thread, node, @@ -373,8 +372,6 @@ bool _Scheduler_priority_affinity_SMP_Unblock( * Perform any thread migrations that are needed due to these changes. */ _Scheduler_priority_affinity_SMP_Check_for_migrations( context ); - - return needs_help; } /* |