From 1d3f02c7ef97292ca5d585fc60841e3100f71a15 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 24 Nov 2017 14:07:53 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11075 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/oslib/src/chpreempt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/common') diff --git a/os/common/oslib/src/chpreempt.c b/os/common/oslib/src/chpreempt.c index a11940596..18e224511 100644 --- a/os/common/oslib/src/chpreempt.c +++ b/os/common/oslib/src/chpreempt.c @@ -108,7 +108,7 @@ bool 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 chVTIsArmed(&ch.preempt_vt) ? (p1 > p2) : (p1 >= p2); + return chVTIsArmedI(&ch.preempt_vt) ? (p1 > p2) : (p1 >= p2); } /** * @brief Switches to the first thread on the runnable queue. @@ -134,7 +134,7 @@ void chSchDoReschedule(void) { /* There are two different scenarios to handle on preemption: time quantum elapsed or not.*/ - if (!chVTIsArmed(&ch.preempt_vt)) { + if (!chVTIsArmedI(&ch.preempt_vt)) { /* The thread consumed its time quantum so it is enqueued behind threads with same priority level, however, it acquires a new time quantum.*/ -- cgit v1.2.3