[rtems commit] rtems: Fix rtems_scheduler_add_processor()

Sebastian Huber sebh at rtems.org
Fri Dec 2 10:19:25 UTC 2016


Module:    rtems
Branch:    master
Commit:    d10716f98f950348cf25df9097402987b6e219fc
Changeset: http://git.rtems.org/rtems/commit/?id=d10716f98f950348cf25df9097402987b6e219fc

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec  2 11:18:32 2016 +0100

rtems: Fix rtems_scheduler_add_processor()

Fix thread dispatch profiling of rtems_scheduler_add_processor().

Update #2797.

---

 cpukit/rtems/src/scheduleraddprocessor.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/cpukit/rtems/src/scheduleraddprocessor.c b/cpukit/rtems/src/scheduleraddprocessor.c
index c39b81d..2572a47 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 );



More information about the vc mailing list