diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-05-12 08:35:36 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-05-12 08:35:36 +0200 |
commit | f778b7f3f177a39505aeea61206e95fc54f875be (patch) | |
tree | 00d0f265b532a13b1215246f901c26a4a28122dc | |
parent | confdefs.h: CONFIGURE_DISABLE_SMP_CONFIGURATION (diff) | |
download | rtems-f778b7f3f177a39505aeea61206e95fc54f875be.tar.bz2 |
confdefs.h: Use SMP scheduler only if necessary
Update #3001.
-rwxr-xr-x | cpukit/sapi/include/confdefs.h | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp65/init.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 06938b1b50..5cba1a85b9 100755 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -806,7 +806,7 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; !defined(CONFIGURE_SCHEDULER_SIMPLE_SMP) && \ !defined(CONFIGURE_SCHEDULER_EDF) && \ !defined(CONFIGURE_SCHEDULER_CBS) - #ifdef _CONFIGURE_SMP_APPLICATION + #if CONFIGURE_MAXIMUM_PROCESSORS > 1 /** * If no scheduler is specified in an SMP configuration, the * priority scheduler is default. diff --git a/testsuites/sptests/sp65/init.c b/testsuites/sptests/sp65/init.c index 72f5212eae..09c64b9d0b 100644 --- a/testsuites/sptests/sp65/init.c +++ b/testsuites/sptests/sp65/init.c @@ -145,6 +145,8 @@ rtems_task Task_1( #define CONFIGURE_RTEMS_INIT_TASKS_TABLE +#define CONFIGURE_DISABLE_SMP_CONFIGURATION + #define CONFIGURE_INIT #include <rtems/confdefs.h> |