From 3c69c467acf7c4ecb31f776fad8f934b6e0d4ca5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 14 Mar 2015 11:08:01 -0500 Subject: sptests misc: Update to not use deprecated methods --- testsuites/sptests/spedfsched03/tasks_aperiodic.c | 6 +++--- testsuites/sptests/spedfsched03/tasks_periodic.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'testsuites/sptests/spedfsched03') diff --git a/testsuites/sptests/spedfsched03/tasks_aperiodic.c b/testsuites/sptests/spedfsched03/tasks_aperiodic.c index 753cf3f01e..c230fd335a 100644 --- a/testsuites/sptests/spedfsched03/tasks_aperiodic.c +++ b/testsuites/sptests/spedfsched03/tasks_aperiodic.c @@ -38,15 +38,15 @@ rtems_task Tasks_Aperiodic( rtems_task_resume( Task_id[5] ); } - rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start); + start = rtems_clock_get_ticks_since_boot(); printf("AT%" PRIdPTR "-S ticks:%d\n", argument, start); /* 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[argument]) break; } - 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); /* delete SELF */ diff --git a/testsuites/sptests/spedfsched03/tasks_periodic.c b/testsuites/sptests/spedfsched03/tasks_periodic.c index 21eb7dfc83..4418f2cd6e 100644 --- a/testsuites/sptests/spedfsched03/tasks_periodic.c +++ b/testsuites/sptests/spedfsched03/tasks_periodic.c @@ -58,17 +58,17 @@ rtems_task Tasks_Periodic( if (rtems_rate_monotonic_period(rmid, Periods[argument])==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 >= 2*HP_LENGTH ) break; /* stop */ /* active computing */ /* using periodic statistics */ while(FOREVER) { - rtems_clock_get(RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); + now = rtems_clock_get_ticks_since_boot(); if (now >= start + Execution[argument]) break; } - 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); } -- cgit v1.2.3