diff options
Diffstat (limited to 'src/chinit.c')
| -rw-r--r-- | src/chinit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chinit.c b/src/chinit.c index b8d36a6e5..2aee810a0 100644 --- a/src/chinit.c +++ b/src/chinit.c @@ -70,10 +70,12 @@ void chSysInit(void) { * together with the \p CH_TIME_QUANTUM macro, the round robin interval. */ void chSysTimerHandlerI(void) { +#ifdef CH_USE_ROUNDROBIN /* running thread has not used up quantum yet? */ if (rlist.r_preempt > 0) /* decrement remaining quantum */ rlist.r_preempt--; +#endif #ifdef CH_USE_SYSTEMTIME rlist.r_stime++; #endif |
