summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2020-03-06 01:45:32 +0000
committercheloha <cheloha@openbsd.org>2020-03-06 01:45:32 +0000
commitb895fb73699709f2062b06abfc54cfd791a9f8ab (patch)
tree6c61bf6b920a8b433037716a80170d866aa907d4 /sys
parentsync for Term::ReadKey update (diff)
downloadwireguard-openbsd-b895fb73699709f2062b06abfc54cfd791a9f8ab.tar.xz
wireguard-openbsd-b895fb73699709f2062b06abfc54cfd791a9f8ab.zip
lcd(4/hppa): timeout_add(9) -> timeout_add_usec(9)
Tested by kettenis@. ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/dev/lcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/lcd.c b/sys/arch/hppa/dev/lcd.c
index c8d744b3c30..70be90a9a0a 100644
--- a/sys/arch/hppa/dev/lcd.c
+++ b/sys/arch/hppa/dev/lcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcd.c,v 1.4 2015/12/11 16:07:01 mpi Exp $ */
+/* $OpenBSD: lcd.c,v 1.5 2020/03/06 01:45:32 cheloha Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -138,7 +138,7 @@ lcd_blink(void *v, int on)
sc->sc_on = on;
bus_space_write_1(sc->sc_iot, sc->sc_cmdh, 0, sc->sc_heartbeat[0]);
- timeout_add(&sc->sc_to, max(1, (sc->sc_delay * hz) / 1000000));
+ timeout_add_usec(&sc->sc_to, sc->sc_delay);
}
void