summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/schedulerremoveprocessor.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-01 20:42:48 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-02 12:41:03 +0100
commit5b6c290ed0fae8f9afd343c891e6d3650ef22492 (patch)
treef01c2825980599091959ff403c98fb95ee5851d3 /cpukit/rtems/src/schedulerremoveprocessor.c
parentposix: Fix typo (diff)
downloadrtems-5b6c290ed0fae8f9afd343c891e6d3650ef22492.tar.bz2
score: Initialize thread queue context early
Initialize thread queue context early preferably outside the critical section. Remove implicit _Thread_queue_Context_initialize() from _Thread_Wait_acquire().
Diffstat (limited to 'cpukit/rtems/src/schedulerremoveprocessor.c')
-rw-r--r--cpukit/rtems/src/schedulerremoveprocessor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/rtems/src/schedulerremoveprocessor.c b/cpukit/rtems/src/schedulerremoveprocessor.c
index 21b7c4611e..86fd8e5265 100644
--- a/cpukit/rtems/src/schedulerremoveprocessor.c
+++ b/cpukit/rtems/src/schedulerremoveprocessor.c
@@ -41,6 +41,7 @@ static bool _Scheduler_Check_processor_removal(
iter_context = arg;
+ _Thread_queue_Context_initialize( &queue_context );
_Thread_Wait_acquire( the_thread, &queue_context );
_Thread_State_acquire_critical( the_thread, &state_context );