summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-02 11:18:32 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-02 11:18:32 +0100
commitd10716f98f950348cf25df9097402987b6e219fc (patch)
treec08334e2b16730f63b611287f8d0beb3af7b2757
parent5b6c290ed0fae8f9afd343c891e6d3650ef22492 (diff)
downloadrtems-d10716f98f950348cf25df9097402987b6e219fc.tar.bz2
rtems: Fix rtems_scheduler_add_processor()
Fix thread dispatch profiling of rtems_scheduler_add_processor(). Update #2797.
-rw-r--r--cpukit/rtems/src/scheduleraddprocessor.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/rtems/src/scheduleraddprocessor.c b/cpukit/rtems/src/scheduleraddprocessor.c
index c39b81d8ce..2572a47ecc 100644
--- a/cpukit/rtems/src/scheduleraddprocessor.c
+++ b/cpukit/rtems/src/scheduleraddprocessor.c
@@ -62,7 +62,6 @@ rtems_status_code rtems_scheduler_add_processor(
Thread_Control *idle;
Scheduler_Node *scheduler_node;
ISR_lock_Context lock_context;
- Thread_queue_Context queue_context;
Per_CPU_Control *cpu_self;
scheduler = &_Scheduler_Table[ scheduler_index ];
@@ -100,9 +99,7 @@ rtems_status_code rtems_scheduler_add_processor(
cpu->Scheduler.control = scheduler;
cpu->Scheduler.context = scheduler_context;
( *scheduler->Operations.add_processor )( scheduler, idle );
- cpu_self = _Thread_Dispatch_disable_critical(
- &queue_context.Lock_context.Lock_context
- );
+ cpu_self = _Thread_Dispatch_disable_critical( &lock_context );
_Scheduler_Release_critical( scheduler, &lock_context );
_ISR_lock_ISR_enable( &lock_context );
_Thread_Dispatch_enable( cpu_self );