Fixed bug 3486874.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3951 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2012-02-12 09:01:03 +00:00
parent 267cd61c19
commit cb5fb91d71
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}