Changeset 1794f33 in rtems


Ignore:
Timestamp:
Jan 2, 2013, 5:56:37 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
5f8d1c27
Parents:
0b422d56
git-author:
Sebastian Huber <sebastian.huber@…> (01/02/13 17:56:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/07/13 14:14:07)
Message:

rtems: Simplify _Event_Surrender()

Remove superfluous test for _ISR_Is_in_progress().

File:
1 edited

Legend:

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

    r0b422d56 r1794f33  
    5858
    5959  /*
    60    *  If we are in an ISR and sending to the current thread, then
    61    *  we have a critical section issue to deal with.
     60   *  If we are sending to the executing thread, then we have a critical
     61   *  section issue to deal with.  The entity sending to the executing thread
     62   *  can be either the executing thread or an ISR.  In case it is the
     63   *  executing thread, then the blocking operation state is not equal to
     64   *  THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED.
    6265   */
    63   if ( _ISR_Is_in_progress() &&
    64        _Thread_Is_executing( the_thread ) &&
     66  if ( _Thread_Is_executing( the_thread ) &&
    6567       *sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
    6668    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
Note: See TracChangeset for help on using the changeset viewer.