From b03d42fec10e48fb46ff222b900f9cc558196d9d Mon Sep 17 00:00:00 2001 From: kn Date: Fri, 21 Jun 2019 08:12:35 +0000 Subject: 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 --- sys/arch/sparc64/dev/led.c | 4 ++-- 1 file 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 -- cgit v1.2.3-59-g8ed1b