From ded0975003e9c70f68f01695183f4981f4614b2d Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 20 Mar 2008 02:14:02 +0000 Subject: - Move maybe_preempt() from kern_switch.c to sched_4bsd.c. This is function is only used by 4bsd. - Create a new runq_choose_fuzz() function rather than polluting runq_choose() with 4BSD specific code. - Move the fuzz sysctl into sched_4bsd.c - Remove some dead code from kern_switch.c --- sys/sys/runq.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/sys/runq.h') diff --git a/sys/sys/runq.h b/sys/sys/runq.h index 4b14e2d..4d46bb7 100644 --- a/sys/sys/runq.h +++ b/sys/sys/runq.h @@ -67,6 +67,7 @@ void runq_add_pri(struct runq *, struct td_sched *, u_char, int); int runq_check(struct runq *); struct td_sched *runq_choose(struct runq *); struct td_sched *runq_choose_from(struct runq *, u_char); +struct td_sched *runq_choose_fuzz(struct runq *, int); void runq_init(struct runq *); void runq_remove(struct runq *, struct td_sched *); void runq_remove_idx(struct runq *, struct td_sched *, u_char *); -- cgit v1.1