From f4773a477a59e098f8bce2543bbf176fb729a4f5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 11 Jun 2011 16:42:05 +0000 Subject: 2011-06-11 Joel Sherrill * 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(). --- testsuites/sptests/sp32/init.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'testsuites/sptests/sp32/init.c') 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, ×tamps[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, - ×tamps[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, - ×tamps[loopy] - ); - directive_failed(status, "clock_get"); + timestamps[loopy] = rtems_clock_get_ticks_since_boot(); /* cancel the period */ status = rtems_rate_monotonic_cancel(period_id); -- cgit v1.2.3