diff options
| author | thorpej <thorpej@NetBSD.org> | 2004-08-21 00:48:32 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2004-08-21 00:48:32 +0000 |
| commit | 8eaae3f96bbb253dffc8d357227c7ae5f59b5c09 (patch) | |
| tree | 149c61151c5c6b343e14b3d7056ea012d4a671f3 | |
| parent | 3f3fa2cf55f3ad156755a8db099661278a1bf0c6 (diff) | |
Eliminate some gratuitous spl frobbing in atabus_thread().
| -rw-r--r-- | sys/dev/ata/ata.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ata/ata.c b/sys/dev/ata/ata.c index 5f382e6abd1..7645402efd5 100644 --- a/sys/dev/ata/ata.c +++ b/sys/dev/ata/ata.c @@ -1,4 +1,4 @@ -/* $NetBSD: ata.c,v 1.58 2004/08/21 00:28:34 thorpej Exp $ */ +/* $NetBSD: ata.c,v 1.59 2004/08/21 00:48:32 thorpej Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.58 2004/08/21 00:28:34 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.59 2004/08/21 00:48:32 thorpej Exp $"); #ifndef ATADEBUG #define ATADEBUG @@ -332,10 +332,10 @@ atabus_thread(void *arg) (void) tsleep(&chp->ch_thread, PRIBIO, "atath", 0); chp->ch_flags |= ATACH_TH_RUN; } - splx(s); - if (chp->ch_flags & ATACH_SHUTDOWN) + if (chp->ch_flags & ATACH_SHUTDOWN) { + splx(s); break; - s = splbio(); + } if (chp->ch_flags & ATACH_TH_RESET) { /* * ata_reset_channel() will freeze 2 times, so |
