[rtems commit] confdefs.h: Use SMP scheduler only if necessary

Sebastian Huber sebh at rtems.org
Fri May 12 06:36:18 UTC 2017


Module:    rtems
Branch:    master
Commit:    f778b7f3f177a39505aeea61206e95fc54f875be
Changeset: http://git.rtems.org/rtems/commit/?id=f778b7f3f177a39505aeea61206e95fc54f875be

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri May 12 08:35:36 2017 +0200

confdefs.h: Use SMP scheduler only if necessary

Update #3001.

---

 cpukit/sapi/include/confdefs.h | 2 +-
 testsuites/sptests/sp65/init.c | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 06938b1..5cba1a8 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 72f5212..09c64b9 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>
 




More information about the vc mailing list