From 14526992418137af1b64d8be02a30fd91406195a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 26 Apr 2021 10:34:11 +0200 Subject: Return status code for _Scheduler_Get_affinity() This avoids having conditional statements to get the API-specific status code. --- cpukit/include/rtems/score/schedulerimpl.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpukit/include') diff --git a/cpukit/include/rtems/score/schedulerimpl.h b/cpukit/include/rtems/score/schedulerimpl.h index c545615919..397789372c 100644 --- a/cpukit/include/rtems/score/schedulerimpl.h +++ b/cpukit/include/rtems/score/schedulerimpl.h @@ -693,10 +693,11 @@ RTEMS_INLINE_ROUTINE const Processor_mask *_Scheduler_Get_processors( * @param cpusetsize The size of @a cpuset. * @param[out] cpuset The cpuset that serves as destination for the copy operation * - * @retval true The copy operation was lossless. - * @retval false The copy operation was not lossless + * @retval STATUS_SUCCESSFUL The operation succeeded. + * + * @retval STATUS_INVALID_NUMBER The processor set was too small. */ -bool _Scheduler_Get_affinity( +Status_Control _Scheduler_Get_affinity( Thread_Control *the_thread, size_t cpusetsize, cpu_set_t *cpuset -- cgit v1.2.3