summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulerpriorityaffinitysmp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-30 06:23:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-30 09:51:18 +0200
commit09c87fb06b4dacb296c1cd72a3452e9d22ee116d (patch)
treec62bb6ff80d38e81bab0ab8ee7cab7aea9bd55b0 /cpukit/score/src/schedulerpriorityaffinitysmp.c
parentscore: Avoid atomic fences for thread wait flags (diff)
downloadrtems-09c87fb06b4dacb296c1cd72a3452e9d22ee116d.tar.bz2
score: Strong APA scheduler processor allocation
Use _Scheduler_SMP_Allocate_processor_exact() to prevent unexpected migrations.
Diffstat (limited to 'cpukit/score/src/schedulerpriorityaffinitysmp.c')
-rw-r--r--cpukit/score/src/schedulerpriorityaffinitysmp.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/cpukit/score/src/schedulerpriorityaffinitysmp.c b/cpukit/score/src/schedulerpriorityaffinitysmp.c
index 3618f4c901..76b46010cb 100644
--- a/cpukit/score/src/schedulerpriorityaffinitysmp.c
+++ b/cpukit/score/src/schedulerpriorityaffinitysmp.c
@@ -113,27 +113,6 @@ void _Scheduler_priority_affinity_SMP_Node_initialize(
}
/*
- * This method is slightly different from
- * _Scheduler_SMP_Allocate_processor_lazy() in that it does what it is asked to
- * do. _Scheduler_SMP_Allocate_processor_lazy() attempts to prevent migrations
- * but does not take into account affinity.
- */
-static inline void _Scheduler_SMP_Allocate_processor_exact(
- Scheduler_Context *context,
- Thread_Control *scheduled_thread,
- Thread_Control *victim_thread
-)
-{
- Per_CPU_Control *victim_cpu = _Thread_Get_CPU( victim_thread );
- Per_CPU_Control *cpu_self = _Per_CPU_Get();
-
- (void) context;
-
- _Thread_Set_CPU( scheduled_thread, victim_cpu );
- _Thread_Dispatch_update_heir( cpu_self, victim_cpu, scheduled_thread );
-}
-
-/*
* This method is unique to this scheduler because it takes into
* account affinity as it determines the highest ready thread.
* Since this is used to pick a new thread to replace the victim,