summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/isa/syscons_isa.c3
-rw-r--r--sys/kern/kern_fork.c4
-rw-r--r--sys/pc98/cbus/syscons_cbus.c3
3 files changed, 3 insertions, 7 deletions
diff --git a/sys/isa/syscons_isa.c b/sys/isa/syscons_isa.c
index 130ad33..6d8cefa 100644
--- a/sys/isa/syscons_isa.c
+++ b/sys/isa/syscons_isa.c
@@ -110,7 +110,6 @@ static int
scsuspend(device_t dev)
{
int retry = 10;
- static int dummy;
sc_softc_t *sc;
sc = &main_softc;
@@ -128,7 +127,7 @@ scsuspend(device_t dev)
if (!sc->switch_in_progress) {
break;
}
- tsleep(&dummy, 0, "scsuspend", 100);
+ pause("scsuspend", hz);
} while (retry--);
return (0);
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index fcdb29e..8f8bd36 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -82,8 +82,6 @@ struct fork_args {
};
#endif
-static int forksleep; /* Place for fork1() to sleep on. */
-
/*
* MPSAFE
*/
@@ -772,7 +770,7 @@ fail:
thread_single_end();
PROC_UNLOCK(p1);
}
- tsleep(&forksleep, PUSER, "fork", hz / 2);
+ pause("fork", hz / 2);
return (error);
}
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