summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-02-27 17:22:30 +0000
committerjhb <jhb@FreeBSD.org>2007-02-27 17:22:30 +0000
commit3a7dab48bd395f66d9af79696af0534c63ae92f2 (patch)
tree90ed0c9bba68d85b799f92f18db6198aaf57e2da /sys/pc98
parentba5df1ca426fe7471a6c15b2181c3ea759b4acb9 (diff)
downloadFreeBSD-src-3a7dab48bd395f66d9af79696af0534c63ae92f2.zip
FreeBSD-src-3a7dab48bd395f66d9af79696af0534c63ae92f2.tar.gz
Use pause() rather than tsleep() on explicit global dummy variables.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/syscons_cbus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pc98/cbus/syscons_cbus.c b/sys/pc98/cbus/syscons_cbus.c
index fabb2c3..4d75f22 100644
--- a/sys/pc98/cbus/syscons_cbus.c
+++ b/sys/pc98/cbus/syscons_cbus.c
@@ -89,7 +89,6 @@ static int
scsuspend(device_t dev)
{
int retry = 10;
- static int dummy;
sc_softc_t *sc;
sc = &main_softc;
@@ -107,7 +106,7 @@ scsuspend(device_t dev)
if (!sc->switch_in_progress) {
break;
}
- tsleep(&dummy, 0, "scsuspend", 100);
+ pause("scsuspend", hz);
} while (retry--);
return (0);
OpenPOWER on IntegriCloud