summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2019-06-21 08:12:36 +0000
committerkn <kn@cvs.openbsd.org>2019-06-21 08:12:36 +0000
commit841259cd98c59028504e22d3e387f0ba49ec95a8 (patch)
tree25799e484f0b576af7072be58301897fcb323149 /sys/arch/sparc64
parentb5c913a5f74a338aae2cda0b5baf3d7b4b2ea901 (diff)
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
Diffstat (limited to 'sys/arch/sparc64')
-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