mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
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:
parent
12e3b9fa7b
commit
06437c5892
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user