diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-03-19 20:27:40 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-03-19 20:27:40 +0000 |
commit | 295f370672c3238bc166743261f067bd8fe80cc4 (patch) | |
tree | 8cc54048c0c50c93a0df27852bcee0c76892adfe /os | |
parent | 62cb008dfa3ea503b3159398478bb78c9cf06239 (diff) | |
download | ChibiOS-295f370672c3238bc166743261f067bd8fe80cc4.tar.gz ChibiOS-295f370672c3238bc166743261f067bd8fe80cc4.tar.bz2 ChibiOS-295f370672c3238bc166743261f067bd8fe80cc4.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1758 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/kernel/src/chschd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/os/kernel/src/chschd.c b/os/kernel/src/chschd.c index cee046af2..c75f099f6 100644 --- a/os/kernel/src/chschd.c +++ b/os/kernel/src/chschd.c @@ -212,18 +212,18 @@ void chSchWakeupS(Thread *ntp, msg_t msg) { */
#if !defined(PORT_OPTIMIZED_DORESCHEDULEI) || defined(__DOXYGEN__)
void chSchDoRescheduleI(void) {
- Thread *otp, *ntp;
+ Thread *otp;
#if CH_TIME_QUANTUM > 0
rlist.r_preempt = CH_TIME_QUANTUM;
#endif
otp = currp;
/* Picks the first thread from the ready queue and makes it current.*/
- (ntp = fifo_remove(&rlist.r_queue))->p_state = THD_STATE_CURRENT;
- setcurrp(ntp);
+ setcurrp(fifo_remove(&rlist.r_queue));
+ currp->p_state = THD_STATE_CURRENT;
chSchReadyI(otp);
- chDbgTrace(ntp, otp);
- chSysSwitchI(ntp, otp);
+ chDbgTrace(currp, otp);
+ chSysSwitchI(currp, otp);
}
#endif /* !defined(PORT_OPTIMIZED_DORESCHEDULEI) */
|