diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index feb47673dd3..fe3d3f62a2b 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -486,38 +486,4 @@ runq_remove_idx(struct runq *rq, struct td_sched *ts, u_char *idx) } } -/****** functions that are temporarily here ***********/ -#include - -/* - * Allocate scheduler specific per-process resources. - * The thread and proc have already been linked in. - * - * Called from: - * proc_init() (UMA init method) - */ -void -sched_newproc(struct proc *p, struct thread *td) -{ -} - -/* - * thread is being either created or recycled. - * Fix up the per-scheduler resources associated with it. - * Called from: - * sched_fork_thread() - * thread_dtor() (*may go away) - * thread_init() (*may go away) - */ -void -sched_newthread(struct thread *td) -{ - struct td_sched *ts; - - ts = (struct td_sched *) (td + 1); - bzero(ts, sizeof(*ts)); - td->td_sched = ts; - ts->ts_thread = td; -} - #endif /* KERN_SWITCH_INCLUDE */ diff --git a/sys/sys/sched.h b/sys/sys/sched.h index 431a92903ff..fa57055936b 100644 --- a/sys/sys/sched.h +++ b/sys/sys/sched.h @@ -168,10 +168,10 @@ extern long switch_needresched; #define SCHED_STAT_INC(var) #endif -/* temporarily here */ +/* + * Fixup scheduler state for proc0 and thread0 + */ void schedinit(void); -void sched_newproc(struct proc *p, struct thread *td); -void sched_newthread(struct thread *td); #endif /* _KERNEL */ /* POSIX 1003.1b Process Scheduling */