forked from Imagelibrary/rtems
cpukit: Gate ticks per timeslice config
Gate CONFIGURE_TICKS_PER_TIMESLICE appropriately behind CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER.
This commit is contained in:
committed by
Joel Sherrill
parent
1ecb4e3047
commit
9c84037e93
@@ -70,7 +70,9 @@
|
|||||||
#warning "The clock ticks per second is not an integer"
|
#warning "The clock ticks per second is not an integer"
|
||||||
#endif
|
#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"
|
#error "CONFIGURE_TICKS_PER_TIMESLICE shall be greater than zero"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user