aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/include/scheduler.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/kernel/include/scheduler.h')
-rw-r--r--os/kernel/include/scheduler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/kernel/include/scheduler.h b/os/kernel/include/scheduler.h
index 8aa692e58..f3216bb7a 100644
--- a/os/kernel/include/scheduler.h
+++ b/os/kernel/include/scheduler.h
@@ -117,7 +117,7 @@ extern "C" {
* @details This function returns @p TRUE if there is a ready thread with
* higher priority.
*/
-#define chSchMustRescheduleS() (firstprio(&rlist.r_queue) >= currp->p_prio)
+#define chSchMustRescheduleS() (firstprio(&rlist.r_queue) > currp->p_prio)
#endif /* _SCHEDULER_H_ */