Changeset f5b58ff3 in rtems


Ignore:
Timestamp:
Jul 23, 2009, 7:40:23 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
6ffde61
Parents:
2c0d792
Message:

2009-07-23 Joel Sherrill <joel.sherrill@…>

  • rtems/src/timerreset.c: Mark an unreachable path that is a sanity check as conditional on RTEMS_DEBUG.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r2c0d792 rf5b58ff3  
     12009-07-23      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * rtems/src/timerreset.c: Mark an unreachable path that is a sanity
     4        check as conditional on RTEMS_DEBUG.
     5
    162009-07-23      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • cpukit/rtems/src/timerreset.c

    r2c0d792 rf5b58ff3  
    5757          break;
    5858        case TIMER_INTERVAL_ON_TASK:
    59           if ( !_Timer_Server_schedule_operation ) {
    60             _Thread_Enable_dispatch();
    61             return RTEMS_INCORRECT_STATE;
    62           }
     59          /*
     60           *  There is no way for a timer to have this class unless
     61           *  it was scheduled as a server fire.  That requires that
     62           *  the Timer Server be initiated.  So this error cannot
     63           *  occur unless something is internally wrong.
     64           */
     65          #if defined(RTEMS_DEBUG)
     66            if ( !_Timer_Server_schedule_operation ) {
     67              _Thread_Enable_dispatch();
     68              return RTEMS_INCORRECT_STATE;
     69            }
     70          #endif
    6371          _Watchdog_Remove( &the_timer->Ticker );
    6472          (*_Timer_Server_schedule_operation)( the_timer );
Note: See TracChangeset for help on using the changeset viewer.