diff options
author | jeff <jeff@FreeBSD.org> | 2008-03-20 03:09:15 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2008-03-20 03:09:15 +0000 |
commit | 4274384df886076474f9e4974ea43b737e4e9e12 (patch) | |
tree | c87bcd53e917989234dfd647b7f873c0cc93ac0d | |
parent | 898428987bcd3a54189aa869a651d65d33d78009 (diff) | |
download | FreeBSD-src-4274384df886076474f9e4974ea43b737e4e9e12.zip FreeBSD-src-4274384df886076474f9e4974ea43b737e4e9e12.tar.gz |
- Remove the unused and redundant sched_newproc() function.
- Remove the unused and redundant sched_newthread() which peaks into scheduler
private structures.
-rw-r--r-- | sys/kern/kern_switch.c | 34 | ||||
-rw-r--r-- | sys/sys/sched.h | 6 |
2 files changed, 3 insertions, 37 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index feb4767..fe3d3f6 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 <vm/uma.h> - -/* - * 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 431a929..fa57055 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 */ |