diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-12 09:01:03 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-12 09:01:03 +0000 |
commit | cb5fb91d7174222a07842a2d795f28bcda2ef704 (patch) | |
tree | 334e2972c6de9024ce47360651caf0cb57edd7fa | |
parent | 267cd61c1914bc1d71f47f020d391c2d3ac1c224 (diff) | |
download | ChibiOS-cb5fb91d7174222a07842a2d795f28bcda2ef704.tar.gz ChibiOS-cb5fb91d7174222a07842a2d795f28bcda2ef704.tar.bz2 ChibiOS-cb5fb91d7174222a07842a2d795f28bcda2ef704.zip |
Fixed bug 3486874.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3951 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/kernel/src/chschd.c | 2 |
1 files changed, 2 insertions, 0 deletions
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);
}
|