summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2
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/i386/ibcs2
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/i386/ibcs2')
-rw-r--r--sys/i386/ibcs2/ibcs2_xenix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/i386/ibcs2/ibcs2_xenix.c b/sys/i386/ibcs2/ibcs2_xenix.c
index 8ff5997..7759668 100644
--- a/sys/i386/ibcs2/ibcs2_xenix.c
+++ b/sys/i386/ibcs2/ibcs2_xenix.c
@@ -140,8 +140,7 @@ xenix_nap(struct thread *td, struct xenix_nap_args *uap)
DPRINTF(("IBCS2: 'xenix nap %d ms'\n", uap->millisec));
period = (long)uap->millisec / (1000/hz);
if (period)
- while (tsleep(&period, PPAUSE, "nap", period)
- != EWOULDBLOCK) ;
+ pause("nap", period);
return 0;
}
OpenPOWER on IntegriCloud