diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-14 11:08:01 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-17 10:05:07 -0500 |
commit | 3c69c467acf7c4ecb31f776fad8f934b6e0d4ca5 (patch) | |
tree | 7e1ae7405378cded0fa02a73ca17e5ecf07769bb /testsuites/sptests/spcbssched02 | |
parent | e334edd1715abe7a82fea118ef1efc57806e1fe9 (diff) |
sptests misc: Update to not use deprecated methods
Diffstat (limited to 'testsuites/sptests/spcbssched02')
-rw-r--r-- | testsuites/sptests/spcbssched02/task_periodic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/sptests/spcbssched02/task_periodic.c b/testsuites/sptests/spcbssched02/task_periodic.c index bcdec3c378..4c11ad41ad 100644 --- a/testsuites/sptests/spcbssched02/task_periodic.c +++ b/testsuites/sptests/spcbssched02/task_periodic.c @@ -107,12 +107,12 @@ rtems_task Task_Periodic( if ( rtems_rate_monotonic_period(rmid, Period) == RTEMS_TIMEOUT ) printf( "P%" PRIdPTR " - Deadline miss\n", argument ); - rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start ); + start = rtems_clock_get_ticks_since_boot(); printf( "P%" PRIdPTR "-S ticks:%d\n", argument, start ); if ( start > 4*Period+Phase ) break; /* stop */ /* active computing */ while(FOREVER) { - rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now ); + now = rtems_clock_get_ticks_since_boot(); if ( now >= start + Execution ) break; if ( server_id != 0 ) { @@ -126,7 +126,7 @@ rtems_task Task_Periodic( } } } - rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &stop ); + stop = rtems_clock_get_ticks_since_boot(); printf( "P%" PRIdPTR "-F ticks:%d\n", argument, stop ); } |