[PATCH 1/2] score: Update to the latest score interface

Chris Johns chrisj at rtems.org
Wed Mar 22 00:41:39 UTC 2023


These are for the net-legacy repo. I seem to have lost my subject say this while
getting them posted to the list.

Bring on a merge request tool to avoid all this mess .....

Chris

On 22/3/2023 11:36 am, chrisj at rtems.org wrote:
> 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 );
>  }


More information about the devel mailing list