diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-14 09:14:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-30 09:53:25 +0200 |
commit | d5ef7ae2a36bee532702d609f1dbb209cc47dd29 (patch) | |
tree | fe23444d0b02c06e7447ab169c88f7a16258bf5f /cpukit/score/src/schedulersimplesmp.c | |
parent | score: Move _Thread_Dispatch_if_necessary() (diff) | |
download | rtems-d5ef7ae2a36bee532702d609f1dbb209cc47dd29.tar.bz2 |
smp: Delete _SMP_Request_other_cores_to_dispatch()
Use an event triggered unicast to inform remote processors about a
necessary thread dispatch instead.
Diffstat (limited to 'cpukit/score/src/schedulersimplesmp.c')
-rw-r--r-- | cpukit/score/src/schedulersimplesmp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/score/src/schedulersimplesmp.c b/cpukit/score/src/schedulersimplesmp.c index 55c40a67e8..aeef215b3a 100644 --- a/cpukit/score/src/schedulersimplesmp.c +++ b/cpukit/score/src/schedulersimplesmp.c @@ -58,9 +58,15 @@ static void _Scheduler_simple_smp_Allocate_processor( } if ( heir != victim ) { + const Per_CPU_Control *cpu_of_executing = _Per_CPU_Get(); + heir->cpu = cpu_of_victim; cpu_of_victim->heir = heir; cpu_of_victim->dispatch_necessary = true; + + if ( cpu_of_victim != cpu_of_executing ) { + _Per_CPU_Send_interrupt( cpu_of_victim ); + } } } |