diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-06-11 16:42:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-06-11 16:42:05 +0000 |
commit | f4773a477a59e098f8bce2543bbf176fb729a4f5 (patch) | |
tree | c0e283f611f37fef419da4e7be6f0eb29b5a8907 /testsuites/sptests/sp29 | |
parent | 2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-f4773a477a59e098f8bce2543bbf176fb729a4f5.tar.bz2 |
2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen02.c, sp09/screen13.c, sp09/sp09.scn, sp29/init.c,
sp30/sp30.scn, sp32/init.c, spclockget/init.c: Avoid use of
deprecated rtems_clock_get() except in spclockget().
Diffstat (limited to 'testsuites/sptests/sp29')
-rw-r--r-- | testsuites/sptests/sp29/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/sptests/sp29/init.c b/testsuites/sptests/sp29/init.c index 001b6716e3..5d9e10448d 100644 --- a/testsuites/sptests/sp29/init.c +++ b/testsuites/sptests/sp29/init.c @@ -165,9 +165,9 @@ rtems_task Init (rtems_task_argument ignored) * Since this task is holding this, this task will block and timeout. * Then the timeout error will be returned. */ - rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); + then = rtems_clock_get_ticks_since_boot(); sc = rtems_semaphore_obtain (semnorec, RTEMS_WAIT, 5); - rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); + now = rtems_clock_get_ticks_since_boot(); if (sc == RTEMS_SUCCESSFUL) { printf ("%d: Reobtain non-recursive-lock semaphore -- and should not have.\n", __LINE__); } @@ -178,12 +178,12 @@ rtems_task Init (rtems_task_argument ignored) printf ("%d: Reobtain non-recursive-lock semaphore failed without timeout.\n", __LINE__); startTask (semnorec); - rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); + then = rtems_clock_get_ticks_since_boot(); for (i = 0 ; i < 5 ; i++) { rtems_interval diff; sc = rtems_semaphore_obtain (semnorec, RTEMS_WAIT, RTEMS_NO_TIMEOUT); - rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now); + now = rtems_clock_get_ticks_since_boot(); diff = (now - then); then = now; if (sc != RTEMS_SUCCESSFUL) |