aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ppc
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2007-02-23 16:25:08 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2007-02-23 16:25:08 +0000
commita96255b62d488d4d2f532e64a74cc99571aacbd8 (patch)
treee93bd90cb35a83882bef6ca2e41bbf03c4c5a077 /sys/dev/ppc
parent37e80fcac22c6734bcdb79e160bc1eac56740c4c (diff)
downloadsrc-a96255b62d488d4d2f532e64a74cc99571aacbd8.tar.gz
src-a96255b62d488d4d2f532e64a74cc99571aacbd8.zip
Use 'pause' in several places rather than trying to tsleep() on NULL (which
triggers a KASSERT) or local variables. In the case of kern_ndis, the tsleep() actually used a common sleep address (curproc) making it susceptible to a premature wakeup.
Notes
Notes: svn path=/head/; revision=166909
Diffstat (limited to 'sys/dev/ppc')
-rw-r--r--sys/dev/ppc/ppc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c
index 4cb1b2aeb510..72a7c86333d7 100644
--- a/sys/dev/ppc/ppc.c
+++ b/sys/dev/ppc/ppc.c
@@ -1393,8 +1393,7 @@ ppc_exec_microseq(device_t dev, struct ppb_microseq **p_msq)
case MS_OP_ADELAY:
if (mi->arg[0].i)
- tsleep(NULL, PPBPRI, "ppbdelay",
- mi->arg[0].i * (hz/1000));
+ pause("ppbdelay", mi->arg[0].i * (hz/1000));
INCR_PC;
break;