From d5ef7ae2a36bee532702d609f1dbb209cc47dd29 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 14 Jun 2013 09:14:31 +0200 Subject: smp: Delete _SMP_Request_other_cores_to_dispatch() Use an event triggered unicast to inform remote processors about a necessary thread dispatch instead. --- cpukit/score/src/schedulersimplesmp.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpukit/score/src/schedulersimplesmp.c') 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 ); + } } } -- cgit v1.2.3