diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-02 11:18:32 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-02 11:18:32 +0100 |
commit | d10716f98f950348cf25df9097402987b6e219fc (patch) | |
tree | c08334e2b16730f63b611287f8d0beb3af7b2757 /cpukit/rtems | |
parent | score: Initialize thread queue context early (diff) | |
download | rtems-d10716f98f950348cf25df9097402987b6e219fc.tar.bz2 |
rtems: Fix rtems_scheduler_add_processor()
Fix thread dispatch profiling of rtems_scheduler_add_processor().
Update #2797.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/src/scheduleraddprocessor.c | 5 |
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 ); |