[PATCH] improved error checking in ticks per timeslice
zakthertemsdev at gmail.com
zakthertemsdev at gmail.com
Tue Feb 13 02:28:39 UTC 2024
From: Zack leung <z.liang111 at gmail.com>
diff --git a/cpukit/doxygen/appl-config.h b/cpukit/doxygen/appl-config.h
index bd7cde628f..d480eb3971 100644
--- a/cpukit/doxygen/appl-config.h
+++ b/cpukit/doxygen/appl-config.h
@@ -3312,7 +3312,7 @@
* @parblock
* The following constraints apply to this configuration option:
*
- * * The value of the configuration option shall be greater than or equal to
+ * * The value of the configuration option shall be greater than
* zero.
*
* * The value of the configuration option shall be less than or equal to <a
diff --git a/cpukit/include/rtems/confdefs/clock.h b/cpukit/include/rtems/confdefs/clock.h
index 26519cc70b..d0d7c453bc 100644
--- a/cpukit/include/rtems/confdefs/clock.h
+++ b/cpukit/include/rtems/confdefs/clock.h
@@ -74,6 +74,10 @@
#error "CONFIGURE_MICROSECONDS_PER_TICK must be positive"
#endif
+#if CONFIGURE_TICKS_PER_TIMESLICE <= 0 && defined(CONFIGURE_TICKS_PER_TIMESLICE)
+ #error "CONFIGURE_TICKS_PER_TIMESLICE shall be greater than zero"
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
--
2.43.0
More information about the devel
mailing list