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?

Index: sys/arch/sparc64/dev/led.c
===================================================================
RCS file: /cvs/src/sys/arch/sparc64/dev/led.c,v
retrieving revision 1.1
diff -u -p -r1.1 led.c
--- sys/arch/sparc64/dev/led.c  29 May 2007 04:08:02 -0000      1.1
+++ sys/arch/sparc64/dev/led.c  20 Jun 2019 21:08:25 -0000
@@ -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

Reply via email to