diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-07 07:45:57 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-07 07:55:03 +0200 |
commit | 76d119857f62ceff860439ae8bbf3fa29757dc87 (patch) | |
tree | 0b2efcae7e04f9cae4d4c15ceba76355892012b2 /cpukit/score/include/rtems/score | |
parent | score: Use processor mask for set affinity (diff) | |
download | rtems-76d119857f62ceff860439ae8bbf3fa29757dc87.tar.bz2 |
score: Introduce _SMP_Get_online_processors()
Update #3059.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/smpimpl.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |