mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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().
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* 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().
|
||||||
|
|
||||||
2009-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2009-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* score/src/heapresizeblock.c: Remove printk's that were accidentally
|
* score/src/heapresizeblock.c: Remove printk's that were accidentally
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ clock_t _times(
|
|||||||
* This call does not depend on TOD being initialized and can't fail.
|
* This call does not depend on TOD being initialized and can't fail.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &ticks );
|
ticks = rtems_clock_get_ticks_since_boot();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RTEMS technically has no notion of system versus user time
|
* RTEMS technically has no notion of system versus user time
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ char *buf=0;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Timed main loop */
|
/* Timed main loop */
|
||||||
rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then);
|
then = rtems_clock_get_ticks_since_boot();
|
||||||
|
|
||||||
if ( nrd ) {
|
if ( nrd ) {
|
||||||
off = 0;
|
off = 0;
|
||||||
@@ -348,9 +348,9 @@ char *buf=0;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
|
now = rtems_clock_get_ticks_since_boot();
|
||||||
now = (now-then)*1000;
|
now = (now-then)*1000;
|
||||||
rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND, &tickspsec);
|
ticksspec = rtems_clock_get_ticks_per_second();
|
||||||
now /= tickspsec; /* time in ms */
|
now /= tickspsec; /* time in ms */
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|||||||
@@ -941,8 +941,7 @@ struct sockwakeup wkup;
|
|||||||
s = ioctl(ourSock, FIONBIO, (char*)&noblock);
|
s = ioctl(ourSock, FIONBIO, (char*)&noblock);
|
||||||
assert( s == 0 );
|
assert( s == 0 );
|
||||||
/* assume nobody tampers with the clock !! */
|
/* assume nobody tampers with the clock !! */
|
||||||
status = rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSec);
|
ticksPerSec = rtems_clock_get_ticks_per_second();
|
||||||
assert( status == RTEMS_SUCCESSFUL );
|
|
||||||
MU_CREAT( &hlock );
|
MU_CREAT( &hlock );
|
||||||
MU_CREAT( &llock );
|
MU_CREAT( &llock );
|
||||||
|
|
||||||
@@ -1155,8 +1154,7 @@ unsigned long max_period = RPCIOD_RETX_CAP_S * ticksPerSec;
|
|||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
|
|
||||||
status = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then );
|
then = rtems_clock_get_ticks_since_boot();
|
||||||
assert( status == RTEMS_SUCCESSFUL );
|
|
||||||
|
|
||||||
for (next_retrans = epoch;;) {
|
for (next_retrans = epoch;;) {
|
||||||
|
|
||||||
@@ -1199,8 +1197,7 @@ rtems_status_code status;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
status = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &unow );
|
unow = rtems_clock_get_ticks_since_boot();
|
||||||
assert( status == RTEMS_SUCCESSFUL );
|
|
||||||
|
|
||||||
/* measure everything relative to then to protect against
|
/* measure everything relative to then to protect against
|
||||||
* rollover
|
* rollover
|
||||||
|
|||||||
Reference in New Issue
Block a user