summaryrefslogtreecommitdiffstats
path: root/sys/dev/scd
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-02-27 17:23:29 +0000
committerjhb <jhb@FreeBSD.org>2007-02-27 17:23:29 +0000
commit9081d442434a29679b0bafe249708a1bd48bbfde (patch)
treea0597a39b0c2d93af237d119ce7da913a8a44962 /sys/dev/scd
parent3a7dab48bd395f66d9af79696af0534c63ae92f2 (diff)
downloadFreeBSD-src-9081d442434a29679b0bafe249708a1bd48bbfde.zip
FreeBSD-src-9081d442434a29679b0bafe249708a1bd48bbfde.tar.gz
Use pause() rather than tsleep() on stack variables and function pointers.
Diffstat (limited to 'sys/dev/scd')
-rw-r--r--sys/dev/scd/scd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c
index 136c900..0175db6 100644
--- a/sys/dev/scd/scd.c
+++ b/sys/dev/scd/scd.c
@@ -1293,7 +1293,7 @@ waitfor_status_bits(struct scd_softc *sc, int bits_set, int bits_clear)
{
break;
}
- tsleep(waitfor_status_bits, PZERO - 1, "waitfor", hz/10);
+ pause("waitfor", hz/10);
}
}
if ((c & bits_set) == bits_set &&
OpenPOWER on IntegriCloud