From 76d119857f62ceff860439ae8bbf3fa29757dc87 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 7 Jul 2017 07:45:57 +0200 Subject: score: Introduce _SMP_Get_online_processors() Update #3059. --- cpukit/score/include/rtems/score/smpimpl.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpukit/score/include/rtems') diff --git a/cpukit/score/include/rtems/score/smpimpl.h b/cpukit/score/include/rtems/score/smpimpl.h index bc800b9e42..950f83a149 100644 --- a/cpukit/score/include/rtems/score/smpimpl.h +++ b/cpukit/score/include/rtems/score/smpimpl.h @@ -335,6 +335,15 @@ bool _SMP_Before_multitasking_action_broadcast( do { } while ( 0 ) #endif +RTEMS_INLINE_ROUTINE const Processor_mask *_SMP_Get_online_processors( void ) +{ +#if defined(RTEMS_SMP) + return &_SMP_Online_processors; +#else + return &_Processor_mask_The_one_and_only. +#endif +} + /** @} */ #ifdef __cplusplus -- cgit v1.2.3