[PATCH] Updated _Thread_Get_CPU_time_used calls
Alan Cudmore
alan.cudmore at gmail.com
Mon Apr 25 02:27:13 UTC 2022
This is for the rtems-net-legacy repository. The patch fixes the
rtems-net-legacy build failure due to change in _Thread_Get_CPU_time_used
parameter change in rtems 6. I have only tried building the i386/pc686 BSP.
---
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.30.1 (Apple Git-130)
More information about the devel
mailing list