Changeset d10716f in rtems


Ignore:
Timestamp:
Dec 2, 2016, 10:18:32 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
7da78cf
Parents:
5b6c290
Message:

rtems: Fix rtems_scheduler_add_processor()

Fix thread dispatch profiling of rtems_scheduler_add_processor().

Update #2797.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/scheduleraddprocessor.c

    r5b6c290 rd10716f  
    6363    Scheduler_Node          *scheduler_node;
    6464    ISR_lock_Context         lock_context;
    65     Thread_queue_Context     queue_context;
    6665    Per_CPU_Control         *cpu_self;
    6766
     
    101100    cpu->Scheduler.context = scheduler_context;
    102101    ( *scheduler->Operations.add_processor )( scheduler, idle );
    103     cpu_self = _Thread_Dispatch_disable_critical(
    104       &queue_context.Lock_context.Lock_context
    105     );
     102    cpu_self = _Thread_Dispatch_disable_critical( &lock_context );
    106103    _Scheduler_Release_critical( scheduler, &lock_context );
    107104    _ISR_lock_ISR_enable( &lock_context );
Note: See TracChangeset for help on using the changeset viewer.