diff options
Diffstat (limited to 'ports/ARMCM3/chcore.c')
-rw-r--r-- | ports/ARMCM3/chcore.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/ARMCM3/chcore.c b/ports/ARMCM3/chcore.c index c09de270c..4aa797c63 100644 --- a/ports/ARMCM3/chcore.c +++ b/ports/ARMCM3/chcore.c @@ -151,7 +151,9 @@ void PendSVVector(void) { chSchReadyI(otp); (currp = fifo_remove(&rlist.r_queue))->p_state = PRCURR; /* set the round-robin time quantum */ +#ifdef CH_USE_ROUNDROBIN rlist.r_preempt = CH_TIME_QUANTUM; +#endif #ifdef CH_USE_TRACE chDbgTrace(otp, currp); #endif |