summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/smp.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/include/rtems/score/smp.h')
-rw-r--r--cpukit/include/rtems/score/smp.h13
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