diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-14 14:04:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-25 07:15:19 +0100 |
commit | ba46b9368eaf57e8c2361c215ceb0d6335ce80fe (patch) | |
tree | 5444029488f319e3591fbbdd0257c66c3245d540 /cpukit/include/rtems/score/smp.h | |
parent | config: Add _SMP_Processor_configure_maximum (diff) | |
download | rtems-ba46b9368eaf57e8c2361c215ceb0d6335ce80fe.tar.bz2 |
config: Add _SMP_Is_enabled
Move the is SMP enabled configuration constant out of the
configuration table.
Since this was the last configuration constant in
rtems_configuration_table, remove this type.
Update #3875.
Diffstat (limited to 'cpukit/include/rtems/score/smp.h')
-rw-r--r-- | cpukit/include/rtems/score/smp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/smp.h b/cpukit/include/rtems/score/smp.h index 2722fbdcee..36cfd981ab 100644 --- a/cpukit/include/rtems/score/smp.h +++ b/cpukit/include/rtems/score/smp.h @@ -37,6 +37,19 @@ extern "C" { */ /** + * @brief Indicates if SMP is enabled. + * + * In SMP configurations, this constant is defined by the application + * configuration via <rtems/confdefs.h>, otherwise it is a compile-time + * constant with the value false. + */ +#if defined(RTEMS_SMP) + extern const bool _SMP_Is_enabled; +#else + #define _SMP_Is_enabled false +#endif + +/** * @brief The configured processor maximum. * * In SMP configurations, this constant is defined by the application |