linux: Wait in timer dispatch for up to 2us

Use 2us in the linux timer dispatch code to unify linux timer dispatch
logic with the common timer_irq.c code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-06-07 09:17:51 -04:00
parent 12e3b9fa7b
commit 06437c5892
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
// Handling of timers on linux systems // Handling of timers on linux systems
// //
// Copyright (C) 2017 Kevin O'Connor <kevin@koconnor.net> // Copyright (C) 2017-2020 Kevin O'Connor <kevin@koconnor.net>
// //
// This file may be distributed under the terms of the GNU GPLv3 license. // This file may be distributed under the terms of the GNU GPLv3 license.
@ -139,7 +139,7 @@ static struct timespec timer_repeat_until;
#define TIMER_IDLE_REPEAT_NS 500000 #define TIMER_IDLE_REPEAT_NS 500000
#define TIMER_REPEAT_NS 100000 #define TIMER_REPEAT_NS 100000
#define TIMER_MIN_TRY_NS 1000 #define TIMER_MIN_TRY_NS 2000
#define TIMER_DEFER_REPEAT_NS 5000 #define TIMER_DEFER_REPEAT_NS 5000
// Invoke timers // Invoke timers