diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2024-03-18 14:56:35 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2024-03-18 15:18:38 -0500 |
commit | 9c84037e93cb3ce1445a75ab93157b837dcf2c1c (patch) | |
tree | a8c23b710120c63ccb6c04ee8d0d6b4b922d8bef | |
parent | cpukit/jffs2: Properly commit JFFS2 data (diff) | |
download | rtems-9c84037e93cb3ce1445a75ab93157b837dcf2c1c.tar.bz2 |
cpukit: Gate ticks per timeslice config
Gate CONFIGURE_TICKS_PER_TIMESLICE appropriately behind
CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER.
-rw-r--r-- | cpukit/include/rtems/confdefs/clock.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |