Changeset f5bb2991 in rtems


Ignore:
Timestamp:
Mar 17, 2016, 5:30:29 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
92dee4ab
Parents:
75aef54
git-author:
Sebastian Huber <sebastian.huber@…> (03/17/16 05:30:29)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/17/16 07:27:47)
Message:

rtems: Avoid Giant lock in rtems_task_mode()

Update #2555.

File:
1 edited

Legend:

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

    r75aef54 rf5bb2991  
    113113
    114114  if ( preempt_enabled || needs_asr_dispatching ) {
    115     ISR_lock_Context lock_context;
     115    Per_CPU_Control  *cpu_self;
     116    ISR_lock_Context  lock_context;
    116117
    117     _Thread_Disable_dispatch();
     118    cpu_self = _Thread_Dispatch_disable();
    118119    _Scheduler_Acquire( executing, &lock_context );
    119120    _Scheduler_Schedule( executing );
    120121    _Scheduler_Release( executing, &lock_context );
    121     _Thread_Enable_dispatch();
     122    _Thread_Dispatch_enable( cpu_self );
    122123  }
    123124
Note: See TracChangeset for help on using the changeset viewer.