summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp32/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-06-11 16:42:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-06-11 16:42:05 +0000
commitf4773a477a59e098f8bce2543bbf176fb729a4f5 (patch)
treec0e283f611f37fef419da4e7be6f0eb29b5a8907 /testsuites/sptests/sp32/init.c
parent2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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/sp32/init.c')
-rw-r--r--testsuites/sptests/sp32/init.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/testsuites/sptests/sp32/init.c b/testsuites/sptests/sp32/init.c
index f6eb2270d8..0b484a865b 100644
--- a/testsuites/sptests/sp32/init.c
+++ b/testsuites/sptests/sp32/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2009.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -39,8 +39,7 @@ rtems_task Init(
directive_failed(status, "rate_monotonic_period #1");
/* get our first timestamp */
- status = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &timestamps[0] );
- directive_failed(status, "clock_get");
+ timestamps[0] = rtems_clock_get_ticks_since_boot();
/* loop through and gather more timestamps */
for (loopy = 1; loopy < 5; loopy++) {
@@ -48,11 +47,7 @@ rtems_task Init(
status = rtems_rate_monotonic_period( period_id, wantintervals[loopy] );
directive_failed(status, "rate_monotonic_period #2");
- status = rtems_clock_get(
- RTEMS_CLOCK_GET_TICKS_SINCE_BOOT,
- &timestamps[loopy]
- );
- directive_failed(status, "clock_get");
+ timestamps[loopy] = rtems_clock_get_ticks_since_boot();
}
/* block one last time */
@@ -60,11 +55,7 @@ rtems_task Init(
directive_failed(status, "rate_monotonic_period #3");
/* get one last timestamp */
- status = rtems_clock_get(
- RTEMS_CLOCK_GET_TICKS_SINCE_BOOT,
- &timestamps[loopy]
- );
- directive_failed(status, "clock_get");
+ timestamps[loopy] = rtems_clock_get_ticks_since_boot();
/* cancel the period */
status = rtems_rate_monotonic_cancel(period_id);