diff options
Diffstat (limited to 'core/timer.c')
-rw-r--r-- | core/timer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/timer.c b/core/timer.c index a4fa8b8..40526ee 100644 --- a/core/timer.c +++ b/core/timer.c @@ -198,7 +198,7 @@ static void __check_timers(uint64_t now) } } -void check_timers(void) +void check_timers(bool from_interrupt) { struct timer *t; uint64_t now = mftb(); @@ -215,7 +215,8 @@ void check_timers(void) /* Take lock and try again */ lock(&timer_lock); - __check_poll_timers(); + if (!from_interrupt) + __check_poll_timers(); __check_timers(now); unlock(&timer_lock); } |