summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2005-05-06 00:52:14 +0000
committerScott Long <scottl@FreeBSD.org>2005-05-06 00:52:14 +0000
commit1aa89243d305556a3fe01f713865d5a33b074708 (patch)
tree196499c0fca98d36297c174d300d7142c147af82
parentaae011bfe03beb4dfc8c0f3d02531ca3fb82674c (diff)
downloadsrc-test2-1aa89243d305556a3fe01f713865d5a33b074708.tar.gz
src-test2-1aa89243d305556a3fe01f713865d5a33b074708.zip
Notes
-rw-r--r--sys/dev/ips/ips.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ips/ips.c b/sys/dev/ips/ips.c
index f80dc8f53441..9229857999fd 100644
--- a/sys/dev/ips/ips.c
+++ b/sys/dev/ips/ips.c
@@ -512,7 +512,6 @@ static __inline int ips_morpheus_check_intr(ips_softc_t *sc)
PRINTF(9, "interrupt registers out:%x\n", oisr);
if(!(oisr & MORPHEUS_BIT_CMD_IRQ)){
DEVICE_PRINTF(2,sc->dev, "got a non-command irq\n");
- mtx_unlock(&sc->queue_mtx);
return (0);
}
while((status.value = ips_read_4(sc, MORPHEUS_REG_OQPR)) != 0xffffffff){
@@ -540,6 +539,10 @@ void ips_morpheus_poll(ips_command_t *command)
{
uint32_t ts;
+ /*
+ * Locks are not used here because this is only called during
+ * crashdumps.
+ */
ts = time_second + command->timeout;
while ((command->timeout != 0)
&& (ips_morpheus_check_intr(command->sc) == 0)