mirror of https://github.com/Desuuuu/klipper.git
sched: Move last_insert check for improved gcc code layout
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
cfff897480
commit
59314d99e0
|
@ -161,10 +161,10 @@ sched_timer_dispatch(void)
|
|||
// Update timer_list (rescheduling current timer if necessary)
|
||||
unsigned int next_waketime = updated_waketime;
|
||||
if (unlikely(res == SF_DONE)) {
|
||||
if (SchedStatus.last_insert == t)
|
||||
SchedStatus.last_insert = t->next;
|
||||
next_waketime = t->next->waketime;
|
||||
SchedStatus.timer_list = t->next;
|
||||
if (SchedStatus.last_insert == t)
|
||||
SchedStatus.last_insert = t->next;
|
||||
} else if (!timer_is_before(updated_waketime, t->next->waketime)) {
|
||||
next_waketime = t->next->waketime;
|
||||
SchedStatus.timer_list = t->next;
|
||||
|
|
Loading…
Reference in New Issue