diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2008-10-28 11:49:29 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2008-10-28 11:49:29 +0000 |
commit | 4c73ef40af1202bdbfb1dded9b12eb594a945e2c (patch) | |
tree | 71e9271bde29a9aa84474eacb625ac2d8a3c4b4b /sys/dev/ic | |
parent | 2ab5928ff6df9eacd048bb5f7df227bb1a2550b9 (diff) |
Be nicer waking up.
prompted and ok dlg
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ami.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index 54a838853d3..1de012723c3 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.188 2008/10/28 11:43:10 marco Exp $ */ +/* $OpenBSD: ami.c,v 1.189 2008/10/28 11:49:28 marco Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -188,7 +188,8 @@ ami_remove_runq(struct ami_ccb *ccb) TAILQ_REMOVE(&ccb->ccb_sc->sc_ccb_runq, ccb, ccb_link); if (TAILQ_EMPTY(&ccb->ccb_sc->sc_ccb_runq)) { ccb->ccb_sc->sc_drained = 1; - wakeup(ccb->ccb_sc); + if (sc->sc_drainio) + wakeup(ccb->ccb_sc); } } |