[rtems-net-legacy commit] score: Update to the latest score interface
Chris Johns
chrisj at rtems.org
Wed Mar 22 20:21:51 UTC 2023
Module: rtems-net-legacy
Branch: main
Commit: 29a9ede96ae9c3b512527fabacbb5e7be8175a58
Changeset: http://git.rtems.org/rtems-net-legacy/commit/?id=29a9ede96ae9c3b512527fabacbb5e7be8175a58
Author: Chris Johns <chrisj at rtems.org>
Date: Wed Mar 22 11:30:18 2023 +1100
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 );
}
More information about the vc
mailing list