From e8fb1f777f38f1dc5368c03ff2990bd3404cfc18 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 30 Jun 2019 06:28:55 +0000 Subject: Fixed bug #1034. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_19.1.x@12851 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/rt/src/chschd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os') 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) */ /** @} */ -- cgit v1.2.3