summaryrefslogtreecommitdiff
path: root/sys/arch/socppc
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2008-10-15 19:12:21 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2008-10-15 19:12:21 +0000
commit447ea046b5b4aba425b2879f683099c1cfa3713f (patch)
tree8bca5f4e5c63f94a107ad0f4fb69f34c526fe488 /sys/arch/socppc
parentb302a033156f300c77b20b1eb011b4ceaccff009 (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/arch/socppc')
-rw-r--r--sys/arch/socppc/dev/if_tsec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/socppc/dev/if_tsec.c b/sys/arch/socppc/dev/if_tsec.c
index 170eb68e2e4..6ac28f5fd99 100644
--- a/sys/arch/socppc/dev/if_tsec.c
+++ b/sys/arch/socppc/dev/if_tsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tsec.c,v 1.12 2008/10/02 20:21:13 brad Exp $ */
+/* $OpenBSD: if_tsec.c,v 1.13 2008/10/15 19:12:19 blambert Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
@@ -627,7 +627,7 @@ tsec_tick(void *arg)
mii_tick(&sc->sc_mii);
splx(s);
- timeout_add(&sc->sc_tick, hz);
+ timeout_add_sec(&sc->sc_tick, 1);
}
int
@@ -928,7 +928,7 @@ tsec_up(struct tsec_softc *sc)
TSEC_IMASK_TXBEN | TSEC_IMASK_TXFEN |
TSEC_IMASK_RXBEN | TSEC_IMASK_RXFEN);
- timeout_add(&sc->sc_tick, hz);
+ timeout_add_sec(&sc->sc_tick, 1);
}
void