From 447ea046b5b4aba425b2879f683099c1cfa3713f Mon Sep 17 00:00:00 2001 From: Bret Lambert Date: Wed, 15 Oct 2008 19:12:21 +0000 Subject: 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@ --- sys/dev/isa/nsclpcsio_isa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/isa/nsclpcsio_isa.c') 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 -- cgit v1.2.3