diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-05-12 09:53:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-05-16 09:48:32 +0200 |
commit | 6bc63df199f82b90a3ffe471b452f813bf7c7a70 (patch) | |
tree | 808da9bb2b7142457d397f8b855153ad451851c5 /cpukit/sapi/include/rtems/config.h | |
parent | confdefs.h: Fix compile error in non-SMP cfg (diff) | |
download | rtems-6bc63df199f82b90a3ffe471b452f813bf7c7a70.tar.bz2 |
confdefs.h: Add SMP enabled field to configuration
Do not use the processor count to determine if SMP is enabled. Instead
use a dedicated configuration option. Enable SMP by default in SMP
configurations.
Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail
otherwise.
Update #3001.
Diffstat (limited to 'cpukit/sapi/include/rtems/config.h')
-rw-r--r-- | cpukit/sapi/include/rtems/config.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h index ddcb77cc87..2993e70543 100644 --- a/cpukit/sapi/include/rtems/config.h +++ b/cpukit/sapi/include/rtems/config.h @@ -237,6 +237,10 @@ 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) @@ -360,7 +364,7 @@ extern const rtems_configuration_table Configuration; */ #ifdef RTEMS_SMP #define rtems_configuration_is_smp_enabled() \ - (rtems_configuration_get_maximum_processors() > 1) + (Configuration.smp_enabled) #else #define rtems_configuration_is_smp_enabled() \ false |