diff --git a/os/kernel/src/chschd.c b/os/kernel/src/chschd.c index 093a1a0c0..1f7e27c93 100644 --- a/os/kernel/src/chschd.c +++ b/os/kernel/src/chschd.c @@ -178,13 +178,6 @@ void chSchWakeupS(Thread *ntp, msg_t msg) { chSchReadyI(otp); #if CH_USE_ROUNDROBIN rlist.r_preempt = CH_TIME_QUANTUM; -#endif -#if 0 - /* Shortcut for when the round robin scheduling is not enabled.*/ - otp->p_state = PRREADY; - /* Direct insertion on top of the ready list, no scanning.*/ - otp->p_next = rlist.r_queue.p_next->p_next; - otp->p_next->p_prev = rlist.r_queue.p_next = otp; #endif (currp = ntp)->p_state = PRCURR; chDbgTrace(otp, ntp);