diff options
author | 2015-03-16 04:09:53 +0000 | |
---|---|---|
committer | 2015-03-16 04:09:53 +0000 | |
commit | d575d59802be7ae109e9ce10f13f4c39ccdc88a4 (patch) | |
tree | 7e0db27574844742e0ddb5306be8a229bbcc3f2e | |
parent | When state creations happen in short term by outgoing packets of one (diff) | |
download | wireguard-openbsd-d575d59802be7ae109e9ce10f13f4c39ccdc88a4.tar.xz wireguard-openbsd-d575d59802be7ae109e9ce10f13f4c39ccdc88a4.zip |
convert timeout_add() calls using hz to timeout_add_msec()
-rw-r--r-- | sys/dev/pci/if_iwm.c | 6 | ||||
-rw-r--r-- | sys/dev/pci/if_wpi.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index 6e99df8cb2b..6072e6a5196 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.37 2015/03/11 12:24:44 jsg Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.38 2015/03/16 04:09:53 jsg Exp $ */ /* * Copyright (c) 2014 genua mbh <info@genua.de> @@ -5203,7 +5203,7 @@ iwm_calib_timeout(void *arg) } splx(s); - timeout_add(&sc->sc_calib_to, hz/2); + timeout_add_msec(&sc->sc_calib_to, 500); } void @@ -5425,7 +5425,7 @@ iwm_newstate_cb(void *wk) DPRINTF(("%s: IWM_LQ_CMD failed\n", DEVNAME(sc))); } - timeout_add(&sc->sc_calib_to, hz/2); + timeout_add_msec(&sc->sc_calib_to, 500); break; } diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index 0453728fcef..7d838c60249 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wpi.c,v 1.125 2015/03/14 03:38:48 jsg Exp $ */ +/* $OpenBSD: if_wpi.c,v 1.126 2015/03/16 04:09:53 jsg Exp $ */ /*- * Copyright (c) 2006-2008 @@ -2768,7 +2768,7 @@ wpi_run(struct wpi_softc *sc) /* Start periodic calibration timer. */ sc->calib_cnt = 0; - timeout_add(&sc->calib_to, hz / 2); + timeout_add_msec(&sc->calib_to, 500); /* Link LED always on while associated. */ wpi_set_led(sc, WPI_LED_LINK, 0, 1); |