[rtems commit] cpukit: Gate ticks per timeslice config
Joel Sherrill
joel at rtems.org
Mon Mar 18 20:18:42 UTC 2024
Module: rtems
Branch: master
Commit: 9c84037e93cb3ce1445a75ab93157b837dcf2c1c
Changeset: http://git.rtems.org/rtems/commit/?id=9c84037e93cb3ce1445a75ab93157b837dcf2c1c
Author: Kinsey Moore <kinsey.moore at oarcorp.com>
Date: Mon Mar 18 14:56:35 2024 -0500
cpukit: Gate ticks per timeslice config
Gate CONFIGURE_TICKS_PER_TIMESLICE appropriately behind
CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER.
---
cpukit/include/rtems/confdefs/clock.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cpukit/include/rtems/confdefs/clock.h b/cpukit/include/rtems/confdefs/clock.h
index bb6c7e0b68..d35757561d 100644
--- a/cpukit/include/rtems/confdefs/clock.h
+++ b/cpukit/include/rtems/confdefs/clock.h
@@ -70,7 +70,9 @@
#warning "The clock ticks per second is not an integer"
#endif
-#if defined(CONFIGURE_TICKS_PER_TIMESLICE) && CONFIGURE_TICKS_PER_TIMESLICE <= 0
+#if defined(CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER) \
+ && defined(CONFIGURE_TICKS_PER_TIMESLICE) \
+ && CONFIGURE_TICKS_PER_TIMESLICE <= 0
#error "CONFIGURE_TICKS_PER_TIMESLICE shall be greater than zero"
#endif
More information about the vc
mailing list