From 27acd9c0f1bb62d97818f1e117c79d806b328572 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 15 Oct 2007 16:18:20 +0000 Subject: [PATCH] Oops, convert a tsleep() to a msleep() that was missed when adding locking to this driver. Reported by: Michael Butler : imb of protected-networks net --- sys/pci/intpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c index a241795cc90b..2e5e815b5a44 100644 --- a/sys/pci/intpm.c +++ b/sys/pci/intpm.c @@ -436,7 +436,7 @@ intsmb_stop(struct intsmb_softc *sc) /* So that it can use device during device probe on SMBus. */ return (intsmb_stop_poll(sc)); - error = tsleep(sc, PWAIT | PCATCH, "SMBWAI", hz / 8); + error = msleep(sc, &sc->lock, PWAIT | PCATCH, "SMBWAI", hz / 8); if (error == 0) { status = bus_read_1(sc->io_res, PIIX4_SMBHSTSTS); if (!(status & PIIX4_SMBHSTSTAT_BUSY)) {