From 3fbc6983faac3122d49a799d2155df80be6f935d Mon Sep 17 00:00:00 2001 From: davidxu Date: Fri, 27 May 2005 04:27:22 +0000 Subject: [PATCH] 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 --- sys/kern/kern_thread.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 6ed7ffbae14e..805979c8ecc3 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