summaryrefslogtreecommitdiff
path: root/sys/arch/i386/pci
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2009-08-05 07:44:08 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2009-08-05 07:44:08 +0000
commitf8c52e6c4c723b01d02a635c8f55ace88ec28eda (patch)
tree7cb8074faecef4704dcac674656a0380ddf3c03c /sys/arch/i386/pci
parenta17480fbb304fdb9a871d1ba26105e4b36c944f6 (diff)
timeout_add -> timeout_add_msec
ok markus@
Diffstat (limited to 'sys/arch/i386/pci')
-rw-r--r--sys/arch/i386/pci/glxsb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/i386/pci/glxsb.c b/sys/arch/i386/pci/glxsb.c
index 63a981c5681..e405bb168b4 100644
--- a/sys/arch/i386/pci/glxsb.c
+++ b/sys/arch/i386/pci/glxsb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: glxsb.c,v 1.15 2008/09/19 10:44:11 markus Exp $ */
+/* $OpenBSD: glxsb.c,v 1.16 2009/08/05 07:44:07 blambert Exp $ */
/*
* Copyright (c) 2006 Tom Cosgrove <tom@openbsd.org>
@@ -290,7 +290,6 @@ glxsb_rnd(void *v)
{
struct glxsb_softc *sc = v;
uint32_t status, value;
- extern int hz;
status = bus_space_read_4(sc->sc_iot, sc->sc_ioh, SB_RANDOM_NUM_STATUS);
if (status & SB_RNS_TRNG_VALID) {
@@ -298,7 +297,7 @@ glxsb_rnd(void *v)
add_true_randomness(value);
}
- timeout_add(&sc->sc_to, (hz > 100) ? (hz / 100) : 1);
+ timeout_add_msec(&sc->sc_to, 10);
}
#ifdef CRYPTO