mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-21 21:58:05 -06:00
sched: Avoid rescheduling the currently active timer
It's tricky to reschedule the timer irq correctly (due to race conditions with the irq) and in practice it's very rarely needed. Handle the special cases in the generic sched.c code so that the board code doesn't have to handle it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
cb286ede9d
commit
0a3c23bcf6
5 changed files with 53 additions and 90 deletions
|
@ -69,12 +69,6 @@ timer_read_time(void)
|
|||
return 0; // XXX
|
||||
}
|
||||
|
||||
uint8_t
|
||||
timer_set_next(uint32_t next)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint8_t
|
||||
timer_try_set_next(uint32_t next)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue