aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt')
-rw-r--r--os/rt/include/chschd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/include/chschd.h b/os/rt/include/chschd.h
index e91d9a460..4f94f406b 100644
--- a/os/rt/include/chschd.h
+++ b/os/rt/include/chschd.h
@@ -768,7 +768,7 @@ static inline void chSchPreemption(void) {
}
}
#else /* CH_CFG_TIME_QUANTUM == 0 */
- if (p1 >= p2) {
+ if (p1 > p2) {
chSchDoRescheduleAhead();
}
#endif /* CH_CFG_TIME_QUANTUM == 0 */