diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-05-27 04:27:22 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-05-27 04:27:22 +0000 |
commit | 3fbc6983faac3122d49a799d2155df80be6f935d (patch) | |
tree | 657bf0342133eb17dec2fd23996310a6586d3f4f /sys | |
parent | e998be30e5dd05b4ac8101f35e78dca63ba2270f (diff) | |
download | FreeBSD-src-3fbc6983faac3122d49a799d2155df80be6f935d.zip FreeBSD-src-3fbc6983faac3122d49a799d2155df80be6f935d.tar.gz |
Remove sleep queue hack, it is no longer needed with current sleep queue.
Actually, it causes process to hang when it is being debugged.
PR: gnu/77818
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_thread.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 6ed7ffb..805979c 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -929,14 +929,6 @@ thread_suspend_one(struct thread *td) p->p_suspcount++; TD_SET_SUSPENDED(td); TAILQ_INSERT_TAIL(&p->p_suspended, td, td_runq); - /* - * Hack: If we are suspending but are on the sleep queue - * then we are in msleep or the cv equivalent. We - * want to look like we have two Inhibitors. - * May already be set.. doesn't matter. - */ - if (TD_ON_SLEEPQ(td)) - TD_SET_SLEEPING(td); } void |