summaryrefslogtreecommitdiff
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-03-23 16:54:45 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-03-23 16:54:45 +0000
commit470b90eae3a4d36be56d113e7fa8b423cc6deb06 (patch)
treec27a3ce90ded618ef32168661f4afb7303f48751 /sys/kern/kern_synch.c
parent7664c4c05f3265419f6f831a193e64460690850c (diff)
Don't reinitialize the tsleep and ITIMER_REAL timers all the time.
The function and the argument never change.
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index ebb7199d205..804e830e8bf 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_synch.c,v 1.22 2000/03/23 14:44:37 art Exp $ */
+/* $OpenBSD: kern_synch.c,v 1.23 2000/03/23 16:54:43 art Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*-
@@ -378,10 +378,8 @@ tsleep(ident, priority, wmesg, timo)
else
*qp->sq_tailp = p;
*(qp->sq_tailp = &p->p_forw) = 0;
- if (timo) {
- timeout_set(&p->p_sleep_to, endtsleep, p);
+ if (timo)
timeout_add(&p->p_sleep_to, timo);
- }
/*
* We put ourselves on the sleep queue and start our timeout
* before calling CURSIG, as we could stop there, and a wakeup