summaryrefslogtreecommitdiff
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index 9f8bed0aa85a..2337423ec559 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -100,19 +100,8 @@ userret(td, frame, oticks)
sched_userret(td);
/*
- * We need to check to see if we have to exit or wait due to a
- * single threading requirement or some other STOP condition.
- * Don't bother doing all the work if the stop bits are not set
- * at this time.. If we miss it, we miss it.. no big deal.
- */
- if (P_SHOULDSTOP(p)) {
- PROC_LOCK(p);
- thread_suspend_check(0); /* Can suspend or kill */
- PROC_UNLOCK(p);
- }
-
- /*
- * Do special thread processing, e.g. upcall tweaking and such.
+ * Do special thread processing, e.g. suspension checking, upcall
+ * tweaking and such.
*/
if (p->p_flag & P_KSES) {
thread_userret(td, frame);