[PATCH 1/2] score: Update to the latest score interface
chrisj at rtems.org
chrisj at rtems.org
Wed Mar 22 00:36:17 UTC 2023
From: Chris Johns <chrisj at rtems.org>
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 );
}
--
2.37.1
More information about the devel
mailing list