summaryrefslogtreecommitdiff
path: root/sys/kern/kern_thread.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2008-03-12 06:31:06 +0000
committerJeff Roberson <jeff@FreeBSD.org>2008-03-12 06:31:06 +0000
commitc5aa6b581d3bb4c466526bc0144c0e56ee852901 (patch)
tree20ec4b3ab190fc07828f6c3f536e039ecdead59a /sys/kern/kern_thread.c
parentdf4691b98481b2379d249c3e4bb094b445e9196c (diff)
downloadsrc-test2-c5aa6b581d3bb4c466526bc0144c0e56ee852901.tar.gz
src-test2-c5aa6b581d3bb4c466526bc0144c0e56ee852901.zip
Notes
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r--sys/kern/kern_thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index 43522ef7649d..db6d71aa1742 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -881,8 +881,8 @@ thread_suspend_switch(struct thread *td)
p->p_suspcount++;
PROC_UNLOCK(p);
thread_lock(td);
- sched_sleep(td);
TD_SET_SUSPENDED(td);
+ sched_sleep(td, 0);
PROC_SUNLOCK(p);
DROP_GIANT();
mi_switch(SW_VOL, NULL);
@@ -901,8 +901,8 @@ thread_suspend_one(struct thread *td)
THREAD_LOCK_ASSERT(td, MA_OWNED);
KASSERT(!TD_IS_SUSPENDED(td), ("already suspended"));
p->p_suspcount++;
- sched_sleep(td);
TD_SET_SUSPENDED(td);
+ sched_sleep(td, 0);
}
void