From 06437c5892f8fd2d952ea251f396d8f87f00eb47 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 7 Jun 2020 09:17:51 -0400 Subject: [PATCH] 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 --- src/linux/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linux/timer.c b/src/linux/timer.c index fb8319af..89c6f686 100644 --- a/src/linux/timer.c +++ b/src/linux/timer.c @@ -1,6 +1,6 @@ // Handling of timers on linux systems // -// Copyright (C) 2017 Kevin O'Connor +// Copyright (C) 2017-2020 Kevin O'Connor // // 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_REPEAT_NS 100000 -#define TIMER_MIN_TRY_NS 1000 +#define TIMER_MIN_TRY_NS 2000 #define TIMER_DEFER_REPEAT_NS 5000 // Invoke timers