summaryrefslogtreecommitdiff
path: root/sys/kern/kern_threads.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1998-03-30 09:56:58 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1998-03-30 09:56:58 +0000
commit227ee8a188f0f8da52dabd7c2c13748a2578efce (patch)
tree3bc7a5b892410dae1a4e23ebbc2cb43913cd6195 /sys/kern/kern_threads.c
parent20344e15827694bd1a50248ac0c415925ed510e6 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_threads.c')
-rw-r--r--sys/kern/kern_threads.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/kern_threads.c b/sys/kern/kern_threads.c
index 27d7cec13227..03cc9c9e322b 100644
--- a/sys/kern/kern_threads.c
+++ b/sys/kern/kern_threads.c
@@ -46,7 +46,7 @@
* in Germany will I accept domestic beer. This code may or may not work
* and I certainly make no claims as to its fitness for *any* purpose.
*
- * $Id: kern_threads.c,v 1.5 1997/11/07 08:52:57 phk Exp $
+ * $Id: kern_threads.c,v 1.6 1998/02/25 06:30:15 bde Exp $
*/
#include <sys/param.h>
@@ -91,10 +91,7 @@ thr_sleep(struct proc *p, struct thr_sleep_args *uap) {
p->p_wakeup = 0;
return (EINVAL);
}
- s = splclock();
- timevaladd(&atv, &time);
- timo = hzto(&atv);
- splx(s);
+ timo = tvtohz(&atv);
}
p->p_retval[0] = 0;