diff options
Diffstat (limited to 'cpukit/include/rtems/confdefs.h')
-rw-r--r-- | cpukit/include/rtems/confdefs.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index 1254e3d209..b1c3a4a2d2 100644 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -1967,10 +1967,16 @@ extern "C" { #endif /** The configures the number of clock ticks per timeslice. */ -#ifndef CONFIGURE_TICKS_PER_TIMESLICE - #define CONFIGURE_TICKS_PER_TIMESLICE 50 +#if defined(CONFIGURE_TICKS_PER_TIMESLICE) && \ + CONFIGURE_TICKS_PER_TIMESLICE != WATCHDOG_TICKS_PER_TIMESLICE_DEFAULT + +#ifdef CONFIGURE_INIT + const uint32_t _Watchdog_Ticks_per_timeslice = + CONFIGURE_TICKS_PER_TIMESLICE; #endif +#endif /* CONFIGURE_TICKS_PER_TIMESLICE */ + /**@}*/ /* end of General Configuration */ /* @@ -2626,7 +2632,6 @@ struct _reent *__getreent(void) */ const rtems_configuration_table Configuration = { CONFIGURE_EXECUTIVE_RAM_SIZE, /* required RTEMS workspace */ - CONFIGURE_TICKS_PER_TIMESLICE, /* ticks per timeslice quantum */ CONFIGURE_IDLE_TASK_BODY, /* user's IDLE task */ CONFIGURE_IDLE_TASK_STACK_SIZE, /* IDLE task stack size */ #ifdef CONFIGURE_UNIFIED_WORK_AREAS /* true for unified work areas */ |