Changeset 34e64879 in rtems


Ignore:
Timestamp:
Jun 11, 2009, 3:18:08 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
e73f8a17
Parents:
fe484f7d
Message:

2009-06-11 Joel Sherrill <joel.sherrill@…>

  • score/src/corespinlockwait.c: Mark timeout code which is not currently exercised by any API with the FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API conditional.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rfe484f7d r34e64879  
     12009-06-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/src/corespinlockwait.c: Mark timeout code which is not
     4        currently exercised by any API with the
     5        FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API conditional.
     6
    172009-06-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/score/src/corespinlockwait.c

    rfe484f7d r34e64879  
    22 *  SuperCore Spinlock Handler -- Wait for Spinlock
    33 *
    4  *  COPYRIGHT (c) 1989-2006.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    4444{
    4545  ISR_Level level;
    46   Watchdog_Interval       limit = _Watchdog_Ticks_since_boot + timeout;
     46  #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
     47    Watchdog_Interval       limit = _Watchdog_Ticks_since_boot + timeout;
     48  #endif
    4749
    4850  _ISR_Disable( level );
     
    7072      }
    7173
    72       /*
    73        *  They are willing to wait but there could be a timeout.
    74        */
    75       if ( timeout && (limit <= _Watchdog_Ticks_since_boot) ) {
    76         the_spinlock->users -= 1;
    77         _ISR_Enable( level );
    78         return CORE_SPINLOCK_TIMEOUT;
    79       }
     74      #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
     75        /*
     76         *  They are willing to wait but there could be a timeout.
     77         */
     78        if ( timeout && (limit <= _Watchdog_Ticks_since_boot) ) {
     79          the_spinlock->users -= 1;
     80          _ISR_Enable( level );
     81          return CORE_SPINLOCK_TIMEOUT;
     82        }
     83      #endif
    8084
    8185      /*
Note: See TracChangeset for help on using the changeset viewer.