diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-08 08:51:26 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-08 08:51:26 +0000 |
commit | d32014ff1ead0fd53a405aaf82869dbe442c7c16 (patch) | |
tree | afe3954cf6ddd5eb596d9fc61f5417c0cbb26fb9 /os/kernel/src | |
parent | 285d06f3b69fd996abc669050da21f7b5db83010 (diff) | |
download | ChibiOS-d32014ff1ead0fd53a405aaf82869dbe442c7c16.tar.gz ChibiOS-d32014ff1ead0fd53a405aaf82869dbe442c7c16.tar.bz2 ChibiOS-d32014ff1ead0fd53a405aaf82869dbe442c7c16.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3943 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src')
-rw-r--r-- | os/kernel/src/chschd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/kernel/src/chschd.c b/os/kernel/src/chschd.c index 3dd226b1b..808e06300 100644 --- a/os/kernel/src/chschd.c +++ b/os/kernel/src/chschd.c @@ -269,7 +269,7 @@ bool_t chSchIsPreemptionRequired(void) { if the first thread on the ready queue has a higher priority.
Otherwise, if the running thread has used up its time quantum, reschedule
if the first thread on the ready queue has equal or higher priority.*/
- return currp->r_preempt ? p1 > p2 : p1 >= p2;
+ return currp->p_preempt ? p1 > p2 : p1 >= p2;
#else
/* If the round robin preemption feature is not enabled then performs a
simpler comparison.*/
|