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:
parent
267cd61c19
commit
cb5fb91d71
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue