cpukit: Gate ticks per timeslice config

Gate CONFIGURE_TICKS_PER_TIMESLICE appropriately behind
CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER.
This commit is contained in:
Kinsey Moore
2024-03-18 14:56:35 -05:00
committed by Joel Sherrill
parent 1ecb4e3047
commit 9c84037e93

View File

@@ -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