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/isa/nsclpcsio_isa.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/isa/nsclpcsio_isa.c')
-rw-r--r-- | sys/dev/isa/nsclpcsio_isa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/nsclpcsio_isa.c b/sys/dev/isa/nsclpcsio_isa.c index 10772768660..34b5090a247 100644 --- a/sys/dev/isa/nsclpcsio_isa.c +++ b/sys/dev/isa/nsclpcsio_isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nsclpcsio_isa.c,v 1.12 2007/06/01 21:30:31 cnst Exp $ */ +/* $OpenBSD: nsclpcsio_isa.c,v 1.13 2008/10/15 19:12:18 blambert Exp $ */ /* $NetBSD: nsclpcsio_isa.c,v 1.5 2002/10/22 16:18:26 drochner Exp $ */ /* @@ -337,7 +337,7 @@ nsclpcsio_isa_attach(struct device *parent, struct device *self, void *aux) sensordev_install(&sc->sensordev); if (sc->sc_ld_en[SIO_LDN_TMS] || sc->sc_ld_en[SIO_LDN_VLM]) { timeout_set(&nsclpcsio_timeout, nsclpcsio_refresh, sc); - timeout_add(&nsclpcsio_timeout, (20 * hz) / 10); + timeout_add_sec(&nsclpcsio_timeout, 2); } /* Attach GPIO framework */ @@ -359,7 +359,7 @@ nsclpcsio_refresh(void *arg) nsclpcsio_tms_update(sc); if (sc->sc_ld_en[SIO_LDN_VLM]) nsclpcsio_vlm_update(sc); - timeout_add(&nsclpcsio_timeout, (20 * hz) / 10); + timeout_add_sec(&nsclpcsio_timeout, 2); } void |