aboutsummaryrefslogtreecommitdiffstats
path: root/os/common
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-11-24 14:07:53 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-11-24 14:07:53 +0000
commit1d3f02c7ef97292ca5d585fc60841e3100f71a15 (patch)
treece2d1bcd4e919cd35a5916e7b64459350f3d89bd /os/common
parenta8be231257437743118ad5c2d9d7bfef10c806b9 (diff)
downloadChibiOS-1d3f02c7ef97292ca5d585fc60841e3100f71a15.tar.gz
ChibiOS-1d3f02c7ef97292ca5d585fc60841e3100f71a15.tar.bz2
ChibiOS-1d3f02c7ef97292ca5d585fc60841e3100f71a15.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11075 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common')
-rw-r--r--os/common/oslib/src/chpreempt.c4
1 files changed, 2 insertions, 2 deletions
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.*/