diff options
Diffstat (limited to 'sys/kern/kern_kse.c')
| -rw-r--r-- | sys/kern/kern_kse.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 751dd706a281..ee7a25245a74 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -97,6 +97,16 @@ thread_ctor(void *mem, int size, void *arg) (unsigned)RANGEOF(struct thread, td_startzero, td_endzero)); td->td_state = TDS_NEW; td->td_flags |= TDF_UNBOUND; +#if 0 + /* + * Maybe move these here from process creation, but maybe not. + * Moving them here takes them away from their "natural" place + * in the fork process. + */ + /* XXX td_contested does not appear to be initialized for threads! */ + LIST_INIT(&td->td_contested); + callout_init(&td->td_slpcallout, 1); +#endif cached_threads--; /* XXXSMP */ active_threads++; /* XXXSMP */ } |
