Changeset 9eb056f in rtems


Ignore:
Timestamp:
May 11, 2015, 1:11:00 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
33e30f39
Parents:
20b423c6
git-author:
Sebastian Huber <sebastian.huber@…> (05/11/15 13:11:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/19/15 13:14:34)
Message:

rtems: Avoid Giant lock for events

Location:
cpukit/rtems/src
Files:
2 edited

Legend:

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

    r20b423c6 r9eb056f  
    8787  cpu_self = _Thread_Dispatch_disable_critical( lock_context );
    8888  _Thread_Lock_release_default( executing, lock_context );
    89   _Giant_Acquire( cpu_self );
    9089
    9190  if ( ticks ) {
     
    112111  }
    113112
    114   _Giant_Release( cpu_self );
    115113  _Thread_Dispatch_enable( cpu_self );
    116114}
  • cpukit/rtems/src/eventsurrender.c

    r20b423c6 r9eb056f  
    110110    cpu_self = _Thread_Dispatch_disable_critical( lock_context );
    111111    _Thread_Lock_release_default( the_thread, lock_context );
    112     _Giant_Acquire( cpu_self );
    113112
    114113    _Watchdog_Remove_ticks( &the_thread->Timer );
    115114    _Thread_Unblock( the_thread );
    116115
    117     _Giant_Release( cpu_self );
    118116    _Thread_Dispatch_enable( cpu_self );
    119117  } else {
Note: See TracChangeset for help on using the changeset viewer.