Changeset 258d580c in rtems


Ignore:
Timestamp:
Jun 13, 2015, 12:49:23 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
80fca28
Parents:
0562060
Message:

score: Delete unused state WATCHDOG_REMOVE_IT

Location:
cpukit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/alarm.c

    r0562060 r258d580c  
    7575
    7676  state = _Watchdog_Remove_seconds( the_timer );
    77   if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
     77  if ( state == WATCHDOG_ACTIVE ) {
    7878    /*
    7979     *  The stop_time and start_time fields are snapshots of ticks since
  • cpukit/posix/src/ualarm.c

    r0562060 r258d580c  
    7474
    7575  state = _Watchdog_Remove_ticks( the_timer );
    76   if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
     76  if ( state == WATCHDOG_ACTIVE ) {
    7777    /*
    7878     *  The stop_time and start_time fields are snapshots of ticks since
  • cpukit/score/include/rtems/score/watchdog.h

    r0562060 r258d580c  
    8787  WATCHDOG_BEING_INSERTED,
    8888  /** This is the state when the watchdog is on a chain, and allowed to fire. */
    89   WATCHDOG_ACTIVE,
    90   /** This is the state when the watchdog is on a chain, but we should
    91    *  remove without firing if it expires.
    92    */
    93   WATCHDOG_REMOVE_IT
     89  WATCHDOG_ACTIVE
    9490} Watchdog_States;
    9591
  • cpukit/score/include/rtems/score/watchdogimpl.h

    r0562060 r258d580c  
    318318
    319319/**
    320  * This routine deactivates THE_WATCHDOG timer which will remain
    321  * on a watchdog chain.
    322  */
    323 
    324 RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
    325   Watchdog_Control *the_watchdog
    326 )
    327 {
    328 
    329   the_watchdog->state = WATCHDOG_REMOVE_IT;
    330 
    331 }
    332 
    333 /**
    334320 * This routine is invoked at each clock tick to update the ticks
    335321 * watchdog chain.
  • cpukit/score/src/watchdogremove.c

    r0562060 r258d580c  
    3232  Chain_Node        *iterator_node;
    3333
    34   _Assert(
    35     the_watchdog->state == WATCHDOG_ACTIVE
    36       || the_watchdog->state == WATCHDOG_REMOVE_IT
    37   );
     34  _Assert( the_watchdog->state == WATCHDOG_ACTIVE );
    3835
    3936  the_watchdog->state = WATCHDOG_INACTIVE;
     
    10097
    10198    case WATCHDOG_ACTIVE:
    102     case WATCHDOG_REMOVE_IT:
    10399      _Watchdog_Remove_it( header, the_watchdog );
    104100      break;
Note: See TracChangeset for help on using the changeset viewer.