diff options
Diffstat (limited to 'cpukit/include/rtems/score/smpimpl.h')
-rw-r--r-- | cpukit/include/rtems/score/smpimpl.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/smpimpl.h b/cpukit/include/rtems/score/smpimpl.h index 889ef5be58..dbca09d5cb 100644 --- a/cpukit/include/rtems/score/smpimpl.h +++ b/cpukit/include/rtems/score/smpimpl.h @@ -324,6 +324,21 @@ RTEMS_INLINE_ROUTINE const Processor_mask *_SMP_Get_online_processors( void ) #endif } +/** + * @brief Indicate if inter-processor interrupts are needed. + * + * @return True if inter-processor interrupts are needed for the correct system + * operation, otherwise false. + */ +RTEMS_INLINE_ROUTINE const bool _SMP_Need_inter_processor_interrupts( void ) +{ + /* + * Use the configured processor maximum instead of the actual to allow + * testing on uni-processor systems. + */ + return _SMP_Processor_configured_maximum > 1; +} + /** @} */ #ifdef __cplusplus |