summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2019-06-21 08:12:35 +0000
committerkn <kn@openbsd.org>2019-06-21 08:12:35 +0000
commitb03d42fec10e48fb46ff222b900f9cc558196d9d (patch)
tree9dd826bd9182c1b7904c2df173e0de837136dbca
parentMan page fixes from lacygoill at lacygoill dot me. (diff)
downloadwireguard-openbsd-b03d42fec10e48fb46ff222b900f9cc558196d9d.tar.xz
wireguard-openbsd-b03d42fec10e48fb46ff222b900f9cc558196d9d.zip
Use timeout_add_msec(9)
The current code wants to wait 1/100 [s] = 10 [ms] but at least one tick, that's exactly what the millisecond version provides. OK cheloha mpi claudio
-rw-r--r--sys/arch/sparc64/dev/led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/led.c b/sys/arch/sparc64/dev/led.c
index 759f718ddad..a064b2d4891 100644
--- a/sys/arch/sparc64/dev/led.c
+++ b/sys/arch/sparc64/dev/led.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: led.c,v 1.1 2007/05/29 04:08:02 kettenis Exp $ */
+/* $OpenBSD: led.c,v 1.2 2019/06/21 08:12:35 kn Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -143,7 +143,7 @@ led_blink(void *v, int on)
sc->sc_on = on;
bus_space_write_1(sc->sc_iot, sc->sc_ioh, EPIC_ADDR, EPIC_LED_STATE0);
- timeout_add(&sc->sc_to, max(1, hz / 100));
+ timeout_add_msec(&sc->sc_to, 10);
}
void