aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/runq.h
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2008-03-20 02:14:02 +0000
committerJeff Roberson <jeff@FreeBSD.org>2008-03-20 02:14:02 +0000
commita90f3f2547a012ead16d3f10b13d2868bff1f25f (patch)
treea801baab5feb89c390e346906b0453c111b855d2 /sys/sys/runq.h
parenta564bfc7faeee3edc527876beac2a740ec32c882 (diff)
downloadsrc-a90f3f2547a012ead16d3f10b13d2868bff1f25f.tar.gz
src-a90f3f2547a012ead16d3f10b13d2868bff1f25f.zip
- 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
Notes
Notes: svn path=/head/; revision=177419
Diffstat (limited to 'sys/sys/runq.h')
-rw-r--r--sys/sys/runq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/runq.h b/sys/sys/runq.h
index 4b14e2d42d0d..4d46bb7039cd 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 *);