diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2008-10-15 19:12:21 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2008-10-15 19:12:21 +0000 |
commit | 447ea046b5b4aba425b2879f683099c1cfa3713f (patch) | |
tree | 8bca5f4e5c63f94a107ad0f4fb69f34c526fe488 /sys/dev/ic/bwi.c | |
parent | b302a033156f300c77b20b1eb011b4ceaccff009 (diff) |
Second pass of simple timeout_add -> timeout_add_sec conversions
This should take care of the simpler ones (i.e., timeout values of
integer multiples of hz).
ok krw@, art@
Diffstat (limited to 'sys/dev/ic/bwi.c')
-rw-r--r-- | sys/dev/ic/bwi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c index 41271011809..a7f5d403b6f 100644 --- a/sys/dev/ic/bwi.c +++ b/sys/dev/ic/bwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwi.c,v 1.81 2008/08/27 10:03:47 damien Exp $ */ +/* $OpenBSD: bwi.c,v 1.82 2008/10/15 19:12:19 blambert Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. @@ -7453,7 +7453,7 @@ back: timeout_add(&sc->sc_scan_ch, (sc->sc_dwell_time * hz) / 1000); } else if (nstate == IEEE80211_S_RUN) { /* XXX 15 seconds */ - timeout_add(&sc->sc_calib_ch, hz); + timeout_add_sec(&sc->sc_calib_ch, 1); } return (error); @@ -9394,7 +9394,7 @@ bwi_calibrate(void *xsc) } /* XXX 15 seconds */ - timeout_add(&sc->sc_calib_ch, hz * 15); + timeout_add_sec(&sc->sc_calib_ch, 15); } splx(s); |