diff options
author | jhb <jhb@FreeBSD.org> | 2007-10-15 16:18:20 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-10-15 16:18:20 +0000 |
commit | ac96042d3cdd741d827f079c62a1141b3dffa682 (patch) | |
tree | 186c7232dfcdf23e97c57f821d6186978d33e5f6 /sys | |
parent | e4e90e0d081f4e523bded890aa1395aaa5dd615e (diff) | |
download | FreeBSD-src-ac96042d3cdd741d827f079c62a1141b3dffa682.zip FreeBSD-src-ac96042d3cdd741d827f079c62a1141b3dffa682.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pci/intpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c index a241795..2e5e815 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)) { |