Changeset f0266e1 in rtems


Ignore:
Timestamp:
Aug 10, 2009, 4:10:37 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
cdd352e
Parents:
f6ef96c2
Message:

2009-08-10 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/times.c, libfs/src/nfsclient/src/nfsTest.c, libfs/src/nfsclient/src/rpcio.c: Convert calls to legacy routine rtems_clock_get( RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf6ef96c2 rf0266e1  
     12009-08-10      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libcsupport/src/__times.c, libfs/src/nfsclient/src/nfsTest.c,
     4        libfs/src/nfsclient/src/rpcio.c: Convert calls to legacy routine
     5        rtems_clock_get( RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
     6
    172009-08-09      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/libcsupport/src/__times.c

    rf6ef96c2 rf0266e1  
    4242   */
    4343
    44   (void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &ticks );
     44  ticks = rtems_clock_get_ticks_since_boot();
    4545
    4646  /*
  • cpukit/libfs/src/nfsclient/src/nfsTest.c

    rf6ef96c2 rf0266e1  
    330330
    331331        /* Timed main loop */
    332         rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then);
     332        then = rtems_clock_get_ticks_since_boot();
    333333
    334334        if ( nrd ) {
     
    349349        }
    350350
    351         rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
     351        now = rtems_clock_get_ticks_since_boot();
    352352        now = (now-then)*1000;
    353         rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND, &tickspsec);
     353        ticksspec = rtems_clock_get_ticks_per_second();
    354354        now /= tickspsec; /* time in ms */
    355355
  • cpukit/libfs/src/nfsclient/src/rpcio.c

    rf6ef96c2 rf0266e1  
    942942                        assert( s == 0 );
    943943                        /* assume nobody tampers with the clock !! */
    944                         status = rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSec);
    945                         assert( status == RTEMS_SUCCESSFUL );
     944                        ticksPerSec = rtems_clock_get_ticks_per_second();
    946945                        MU_CREAT( &hlock );
    947946                        MU_CREAT( &llock );
     
    11561155
    11571156
    1158         status = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then );
    1159         assert( status == RTEMS_SUCCESSFUL );
     1157        then = rtems_clock_get_ticks_since_boot();
    11601158
    11611159        for (next_retrans = epoch;;) {
     
    12001198                }
    12011199
    1202                 status = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &unow );
    1203                 assert( status == RTEMS_SUCCESSFUL );
     1200                unow = rtems_clock_get_ticks_since_boot();
    12041201
    12051202                /* measure everything relative to then to protect against
Note: See TracChangeset for help on using the changeset viewer.