sched: Don't require 2ms pad in sched_add_timer()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
480415d2e8
commit
34fe4cce14
|
@ -85,7 +85,7 @@ sched_add_timer(struct timer *add)
|
||||||
if (unlikely(timer_is_before(waketime, timer_list->waketime))) {
|
if (unlikely(timer_is_before(waketime, timer_list->waketime))) {
|
||||||
// This timer is before all other scheduled timers
|
// This timer is before all other scheduled timers
|
||||||
struct timer *tl = timer_list;
|
struct timer *tl = timer_list;
|
||||||
if (timer_is_before(waketime, timer_read_time() + timer_from_us(2000)))
|
if (timer_is_before(waketime, timer_read_time()))
|
||||||
try_shutdown("Timer too close");
|
try_shutdown("Timer too close");
|
||||||
if (tl == &deleted_timer)
|
if (tl == &deleted_timer)
|
||||||
add->next = deleted_timer.next;
|
add->next = deleted_timer.next;
|
||||||
|
|
Loading…
Reference in New Issue