aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/src/chschd.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/src/chschd.c')
-rw-r--r--os/rt/src/chschd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/rt/src/chschd.c b/os/rt/src/chschd.c
index c5f3fa859..de6d1520a 100644
--- a/os/rt/src/chschd.c
+++ b/os/rt/src/chschd.c
@@ -430,7 +430,7 @@ void chSchWakeupS(thread_t *ntp, msg_t msg) {
(void) chSchReadyI(ntp);
}
else {
- otp = chSchReadyI(otp);
+ otp = chSchReadyAheadI(otp);
/* Handling idle-leave hook.*/
if (otp->prio == IDLEPRIO) {
@@ -605,6 +605,6 @@ void chSchDoReschedule(void) {
/* Swap operation as tail call.*/
chSysSwitch(currp, otp);
}
-#endif /*!defined(CH_SCH_DO_RESCHEDULE_HOOKED) */
+#endif /* !defined(CH_SCH_DO_RESCHEDULE_HOOKED) */
/** @} */