diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-06 19:45:47 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-06 19:45:47 +0000 |
commit | 4401d0e7b2874074e37c90e0178667a854d0da1f (patch) | |
tree | 423d9ede640b9a9452e89392bcf7a7b6f9a5e464 /os/kernel/src/chsys.c | |
parent | 28c1f163a94e9aaad5d4ec3f9534b89677f9e5b1 (diff) | |
download | ChibiOS-4401d0e7b2874074e37c90e0178667a854d0da1f.tar.gz ChibiOS-4401d0e7b2874074e37c90e0178667a854d0da1f.tar.bz2 ChibiOS-4401d0e7b2874074e37c90e0178667a854d0da1f.zip |
Round robin scheduling improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3930 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chsys.c')
-rw-r--r-- | os/kernel/src/chsys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/kernel/src/chsys.c b/os/kernel/src/chsys.c index 41946cdaf..e433a8e42 100644 --- a/os/kernel/src/chsys.c +++ b/os/kernel/src/chsys.c @@ -129,9 +129,9 @@ void chSysTimerHandlerI(void) { #if CH_TIME_QUANTUM > 0
/* Running thread has not used up quantum yet? */
- if (rlist.r_preempt > 0)
+ if (currp->p_preempt > 0)
/* Decrement remaining quantum.*/
- rlist.r_preempt--;
+ currp->p_preempt--;
#endif
#if CH_DBG_THREADS_PROFILING
currp->p_time++;
|