diff options
author | jeff <jeff@FreeBSD.org> | 2003-02-17 05:14:26 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-02-17 05:14:26 +0000 |
commit | 590a39e29bf8644b413c065f10b5830304c7e17f (patch) | |
tree | cb2703bfafc305c3d31849f9db4c5de6aee18706 /sys/kern/kern_exit.c | |
parent | 9ca123a9b5e06a7012786efe917e934c659b7ab2 (diff) | |
download | FreeBSD-src-590a39e29bf8644b413c065f10b5830304c7e17f.zip FreeBSD-src-590a39e29bf8644b413c065f10b5830304c7e17f.tar.gz |
- Split the struct kse into struct upcall and struct kse. struct kse will
soon be visible only to schedulers. This greatly simplifies much the
KSE code.
Submitted by: davidxu
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 6575e0a..545fa3a 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -147,7 +147,7 @@ exit1(td, rv) } /* - * XXXXKSE: MUST abort all other threads before proceeding past here. + * XXXKSE: MUST abort all other threads before proceeding past here. */ PROC_LOCK(p); if (p->p_flag & P_KSES) { @@ -156,17 +156,6 @@ exit1(td, rv) * if so, act apropriatly, (exit or suspend); */ thread_suspend_check(0); - /* - * Here is a trick.. - * We need to free up our KSE to process other threads - * so that we can safely set the UNBOUND flag - * (whether or not we have a mailbox) as we are NEVER - * going to return to the user. - * The flag will not be set yet if we are exiting - * because of a signal, pagefault, or similar - * (or even an exit(2) from the UTS). - */ - td->td_flags |= TDF_UNBOUND; /* * Kill off the other threads. This requires @@ -192,7 +181,6 @@ exit1(td, rv) * Turn off threading support. */ p->p_flag &= ~P_KSES; - td->td_flags &= ~TDF_UNBOUND; thread_single_end(); /* Don't need this any more. */ } /* |