From 29a9ede96ae9c3b512527fabacbb5e7be8175a58 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 22 Mar 2023 11:30:18 +1100 Subject: score: Update to the latest score interface Updates #4882 --- libtest/testbusy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtest/testbusy.c b/libtest/testbusy.c index c1d4427..51c6a71 100644 --- a/libtest/testbusy.c +++ b/libtest/testbusy.c @@ -28,10 +28,10 @@ void rtems_test_busy_cpu_usage( time_t seconds, long nanoseconds ) Timestamp_Control now; executing = _Thread_Get_executing(); - _Thread_Get_CPU_time_used( executing, &start ); + start = _Thread_Get_CPU_time_used( executing ); _Timestamp_Set( &busy, seconds, nanoseconds ); do { - _Thread_Get_CPU_time_used( executing, &now ); + now = _Thread_Get_CPU_time_used( executing ); } while ( now - start < busy ); } -- cgit v1.2.3