aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-07-30 11:01:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-07-30 11:01:56 +0000
commite150283e1f071673e1d3490cbf85651e5502d421 (patch)
treea34e5264e7c789b87ef2414472bbe8eb4a93d332 /ports
parent0cd87f700cbc1d8dcb03bafe90793626d6efbb32 (diff)
downloadChibiOS-e150283e1f071673e1d3490cbf85651e5502d421.tar.gz
ChibiOS-e150283e1f071673e1d3490cbf85651e5502d421.tar.bz2
ChibiOS-e150283e1f071673e1d3490cbf85651e5502d421.zip
Various optimizations to the scheduler.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@378 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports')
-rw-r--r--ports/ARMCM3/chcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/ARMCM3/chcore.c b/ports/ARMCM3/chcore.c
index 1a631e36b..199c71fd9 100644
--- a/ports/ARMCM3/chcore.c
+++ b/ports/ARMCM3/chcore.c
@@ -167,8 +167,8 @@ void PendSVVector(void) {
PUSH_CONTEXT(sp_thd);
(otp = currp)->p_ctx.r13 = sp_thd;
- chSchReadyI(otp);
(currp = fifo_remove(&rlist.r_queue))->p_state = PRCURR;
+ chSchReadyI(otp);
#ifdef CH_USE_ROUNDROBIN
/* set the round-robin time quantum */
rlist.r_preempt = CH_TIME_QUANTUM;