<div dir="auto">This looks good.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 5, 2022, 7:19 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Issue an error message if a SMP-specific scheduler is used and RTEMS_SMP<br>
is disabled. This might be a more informative compared to compiler or<br>
linker errors.<br>
---<br>
cpukit/include/rtems/scheduler.h | 20 ++++++++++++++++++++<br>
1 file changed, 20 insertions(+)<br>
<br>
diff --git a/cpukit/include/rtems/scheduler.h b/cpukit/include/rtems/scheduler.h<br>
index d5c7e51ef5..a8004cb5e4 100644<br>
--- a/cpukit/include/rtems/scheduler.h<br>
+++ b/cpukit/include/rtems/scheduler.h<br>
@@ -132,6 +132,10 @@<br>
#endif<br>
<br>
#ifdef CONFIGURE_SCHEDULER_EDF_SMP<br>
+ #ifndef RTEMS_SMP<br>
+ #error "CONFIGURE_SCHEDULER_EDF_SMP cannot be used if RTEMS_SMP is disabled"<br>
+ #endif<br>
+<br>
#include <rtems/score/scheduleredfsmp.h><br>
<br>
#ifndef CONFIGURE_MAXIMUM_PROCESSORS<br>
@@ -198,6 +202,10 @@<br>
#endif<br>
<br>
#ifdef CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP<br>
+ #ifndef RTEMS_SMP<br>
+ #error "CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP cannot be used if RTEMS_SMP is disabled"<br>
+ #endif<br>
+<br>
#include <rtems/score/schedulerpriorityaffinitysmp.h><br>
<br>
#define SCHEDULER_PRIORITY_AFFINITY_SMP_CONTEXT_NAME( name ) \<br>
@@ -230,6 +238,10 @@<br>
#endif<br>
<br>
#ifdef CONFIGURE_SCHEDULER_PRIORITY_SMP<br>
+ #ifndef RTEMS_SMP<br>
+ #error "CONFIGURE_SCHEDULER_PRIORITY_SMP cannot be used if RTEMS_SMP is disabled"<br>
+ #endif<br>
+<br>
#include <rtems/score/schedulerprioritysmp.h><br>
<br>
#define SCHEDULER_PRIORITY_SMP_CONTEXT_NAME( name ) \<br>
@@ -262,6 +274,10 @@<br>
#endif<br>
<br>
#ifdef CONFIGURE_SCHEDULER_STRONG_APA<br>
+ #ifndef RTEMS_SMP<br>
+ #error "CONFIGURE_SCHEDULER_STRONG_APA cannot be used if RTEMS_SMP is disabled"<br>
+ #endif<br>
+<br>
#include <rtems/score/schedulerstrongapa.h><br>
<br>
#ifndef CONFIGURE_MAXIMUM_PROCESSORS<br>
@@ -324,6 +340,10 @@<br>
#endif<br>
<br>
#ifdef CONFIGURE_SCHEDULER_SIMPLE_SMP<br>
+ #ifndef RTEMS_SMP<br>
+ #error "CONFIGURE_SCHEDULER_SIMPLE_SMP cannot be used if RTEMS_SMP is disabled"<br>
+ #endif<br>
+<br>
#include <rtems/score/schedulersimplesmp.h><br>
<br>
#define SCHEDULER_SIMPLE_SMP_CONTEXT_NAME( name ) \<br>
-- <br>
2.35.3<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>