aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-06-07 09:17:51 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-06-07 09:17:51 -0400
commit06437c5892f8fd2d952ea251f396d8f87f00eb47 (patch)
tree2630be26fc38e1ce98077f6788ea9e4858479c59 /src
parent12e3b9fa7b4bb69db3af2508bdc291fb8a4890a8 (diff)
downloadkutter-06437c5892f8fd2d952ea251f396d8f87f00eb47.tar.gz
kutter-06437c5892f8fd2d952ea251f396d8f87f00eb47.tar.xz
kutter-06437c5892f8fd2d952ea251f396d8f87f00eb47.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/linux/timer.c4
1 files 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 <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.
@@ -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