diff options
author | jeff <jeff@FreeBSD.org> | 2007-06-12 19:49:39 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2007-06-12 19:49:39 +0000 |
commit | 26422aea29504a29d366848358773f507dc368f4 (patch) | |
tree | ee37a2f65e950e27f5043353c0358f93c2e7a439 /sys/kern/kern_thread.c | |
parent | bed92e37b990e7d96eecf2017d1eb53cfcf0eb4b (diff) | |
download | FreeBSD-src-26422aea29504a29d366848358773f507dc368f4.zip FreeBSD-src-26422aea29504a29d366848358773f507dc368f4.tar.gz |
- Garbage collect unused concurrency functions.
- Remove unused kse fields from struct proc.
- Group remaining fields and #ifdef KSE them.
- Move some kern_kse.c only prototypes out of proc and into kern_kse.
Discussed with: Julian
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index abbac4a..91870d4 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -219,7 +219,9 @@ proc_linkup(struct proc *p, struct thread *td) { TAILQ_INIT(&p->p_threads); /* all threads in proc */ +#ifdef KSE TAILQ_INIT(&p->p_upcalls); /* upcall list */ +#endif sigqueue_init(&p->p_sigqueue, p); p->p_ksi = ksiginfo_alloc(1); if (p->p_ksi != NULL) { @@ -439,19 +441,6 @@ thread_exit(void) } } -#ifdef KSE - /* - * Because each upcall structure has an owner thread, - * owner thread exits only when process is in exiting - * state, so upcall to userland is no longer needed, - * deleting upcall structure is safe here. - * So when all threads in a group is exited, all upcalls - * in the group should be automatically freed. - * XXXKSE This is a KSE thing and should be exported - * there somehow. - */ - upcall_remove(td); -#endif atomic_add_int(&td->td_proc->p_exitthreads, 1); PCPU_SET(deadthread, td); } else { @@ -569,7 +558,6 @@ thread_unthread(struct thread *td) thread_zombie(td->td_standin); td->td_standin = NULL; } - sched_set_concurrency(p, 1); #else p->p_flag &= ~P_HADTHREADS; #endif |