From cb5fb91d7174222a07842a2d795f28bcda2ef704 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 12 Feb 2012 09:01:03 +0000 Subject: Fixed bug 3486874. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3951 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/src/chschd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'os/kernel') diff --git a/os/kernel/src/chschd.c b/os/kernel/src/chschd.c index 9739a595b..6f28d04bb 100644 --- a/os/kernel/src/chschd.c +++ b/os/kernel/src/chschd.c @@ -299,7 +299,9 @@ void chSchDoRescheduleBehind(void) { /* Picks the first thread from the ready queue and makes it current.*/ setcurrp(fifo_remove(&rlist.r_queue)); currp->p_state = THD_STATE_CURRENT; +#if CH_TIME_QUANTUM > 0 otp->p_preempt = CH_TIME_QUANTUM; +#endif chSchReadyI(otp); chSysSwitch(currp, otp); } -- cgit v1.2.3