summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/rtems/config.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-02-01 12:11:33 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-02-02 09:07:08 +0100
commitf95fa38764c007459cb0bd62a67e83a442f55433 (patch)
treec5bd27c5f770301cae59fe1d99b9fe5edf1a0164 /cpukit/sapi/include/rtems/config.h
parentrtems: Fix RTEMS_MAXIMUM_PRIORITY define (diff)
downloadrtems-f95fa38764c007459cb0bd62a67e83a442f55433.tar.bz2
Remove CONFIGURE_SMP_APPLICATION
Enable the SMP support if CONFIGURE_SMP_MAXIMUM_PROCESSORS > 1. Update #2893.
Diffstat (limited to 'cpukit/sapi/include/rtems/config.h')
-rw-r--r--cpukit/sapi/include/rtems/config.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h
index 1b48ea92de..ddcb77cc87 100644
--- a/cpukit/sapi/include/rtems/config.h
+++ b/cpukit/sapi/include/rtems/config.h
@@ -237,10 +237,6 @@ typedef struct {
*/
bool stack_allocator_avoids_work_space;
- #ifdef RTEMS_SMP
- bool smp_enabled;
- #endif
-
uint32_t number_of_initial_extensions;
const rtems_extensions_table *User_extension_table;
#if defined(RTEMS_MULTIPROCESSING)
@@ -356,7 +352,7 @@ extern const rtems_configuration_table Configuration;
* @brief Returns true if the SMP mode of operation is enabled, and false
* otherwise.
*
- * On single-processor configurations this is a compile time constant which
+ * In uni-processor configurations this is a compile-time constant which
* evaluates to false.
*
* @retval true SMP mode of operation is enabled.
@@ -364,7 +360,7 @@ extern const rtems_configuration_table Configuration;
*/
#ifdef RTEMS_SMP
#define rtems_configuration_is_smp_enabled() \
- (Configuration.smp_enabled)
+ (rtems_configuration_get_maximum_processors() > 1)
#else
#define rtems_configuration_is_smp_enabled() \
false