diff options
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/pci/pchb.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/arch/i386/pci/pchb.c b/sys/arch/i386/pci/pchb.c index cc7e23002f1..406ff34d4fd 100644 --- a/sys/arch/i386/pci/pchb.c +++ b/sys/arch/i386/pci/pchb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pchb.c,v 1.56 2007/06/01 22:45:17 biorn Exp $ */ +/* $OpenBSD: pchb.c,v 1.57 2007/11/16 15:31:19 mikeb Exp $ */ /* $NetBSD: pchb.c,v 1.6 1997/06/06 23:29:16 thorpej Exp $ */ /* @@ -180,7 +180,6 @@ pchbattach(struct device *parent, struct device *self, void *aux) struct pchb_softc *sc = (struct pchb_softc *)self; struct pci_attach_args *pa = aux; struct pcibus_attach_args pba; - struct timeval tv1, tv2; pcireg_t bcreg; u_char bdnum, pbnum; pcitag_t tag; @@ -381,25 +380,6 @@ pchbattach(struct device *parent, struct device *self, void *aux) r = bus_space_read_1(sc->bt, sc->bh, I82802_RNG_DATA); - /* benchmark the RNG */ - microtime(&tv1); - for (i = 8 * 1024; i--; ) { - while(!(bus_space_read_1(sc->bt, sc->bh, - I82802_RNG_RNGST) & I82802_RNG_RNGST_DATAV)) - ; - r = bus_space_read_1(sc->bt, sc->bh, - I82802_RNG_DATA); - } - microtime(&tv2); - - timersub(&tv2, &tv1, &tv1); - if (tv1.tv_sec) - tv1.tv_usec += 1000000 * tv1.tv_sec; - printf(": rng active"); - if (tv1.tv_usec != 0) - printf(", %dKb/sec", - 8 * 1000000 / tv1.tv_usec); - timeout_set(&sc->sc_tmo, pchb_rnd, sc); sc->i = 4; pchb_rnd(sc); |