[PATCH] Add configuration option for single processor applications

Richi Dubey richidubey at gmail.com
Tue Mar 16 15:45:54 UTC 2021


This change sets the value of number of processor as 1 for a single processor application.
Useful when trying to run a single processor application on a multi processor scheduler.
---
 cpukit/include/rtems/confdefs/scheduler.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cpukit/include/rtems/confdefs/scheduler.h b/cpukit/include/rtems/confdefs/scheduler.h
index 84ca810fd7..116b2aec87 100644
--- a/cpukit/include/rtems/confdefs/scheduler.h
+++ b/cpukit/include/rtems/confdefs/scheduler.h
@@ -45,6 +45,10 @@
 
 #include <rtems/confdefs/percpu.h>
 
+#ifndef CONFIGURE_MAXIMUM_PROCESSORS
+  #define CONFIGURE_MAXIMUM_PROCESSORS 1
+#endif
+
 #if !defined(CONFIGURE_SCHEDULER_CBS) \
   && !defined(CONFIGURE_SCHEDULER_EDF) \
   && !defined(CONFIGURE_SCHEDULER_EDF_SMP) \
-- 
2.17.1



More information about the devel mailing list