[rtems commit] confdefs.h: Fix compile error in non-SMP cfg

Sebastian Huber sebh at rtems.org
Tue May 16 07:48:48 UTC 2017


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue May 16 09:47:08 2017 +0200

confdefs.h: Fix compile error in non-SMP cfg

Bug introduced by f778b7f3f177a39505aeea61206e95fc54f875be.

Update #3001.

---

 cpukit/sapi/include/confdefs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 5cba1a8..331e747 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)
-  #if CONFIGURE_MAXIMUM_PROCESSORS > 1
+  #if defined(RTEMS_SMP) && CONFIGURE_MAXIMUM_PROCESSORS > 1
     /**
      * If no scheduler is specified in an SMP configuration, the
      * priority scheduler is default.




More information about the vc mailing list