From 0f0fab8ca6f06726635690cafaa268b12439d162 Mon Sep 17 00:00:00 2001
From: davidxu <davidxu@FreeBSD.org>
Date: Wed, 26 Feb 2003 05:47:25 +0000
Subject: [PATCH] Better to not know anything about KSE.

---
 sys/amd64/amd64/trap.c | 2 --
 sys/i386/i386/trap.c   | 2 --
 2 files changed, 4 deletions(-)

diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 1d58d6fca56c..85e4f30f6833 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -54,7 +54,6 @@
 #include <sys/bus.h>
 #include <sys/systm.h>
 #include <sys/proc.h>
-#include <sys/kse.h>
 #include <sys/pioctl.h>
 #include <sys/kernel.h>
 #include <sys/ktr.h>
@@ -954,7 +953,6 @@ syscall(frame)
 		mtx_unlock(&Giant);
 	}
 #endif
-	KASSERT((td->td_kse != NULL), ("syscall: kse/thread UNLINKED"));
 
 	sticks = td->td_sticks;
 	td->td_frame = &frame;
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index 1d58d6fca56c..85e4f30f6833 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -54,7 +54,6 @@
 #include <sys/bus.h>
 #include <sys/systm.h>
 #include <sys/proc.h>
-#include <sys/kse.h>
 #include <sys/pioctl.h>
 #include <sys/kernel.h>
 #include <sys/ktr.h>
@@ -954,7 +953,6 @@ syscall(frame)
 		mtx_unlock(&Giant);
 	}
 #endif
-	KASSERT((td->td_kse != NULL), ("syscall: kse/thread UNLINKED"));
 
 	sticks = td->td_sticks;
 	td->td_frame = &frame;