diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-07-16 00:06:49 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:15 +0200 |
commit | 9988809c45696331e4ff6a831653f042211ad8ae (patch) | |
tree | 4febbbfab596d20641f43586c2ccb6dd1ff276c2 /kern | |
parent | 79dac7c8bdfc3e22d0caf20f11ffbbbabf50e3ee (diff) |
2008-07-15 Barry deFreese <bddebian@comcast.net>
* kern/priority.c: Include <kern/sched_prim.h>.
* kern/sched_prim.c (recompute_priorities, update_priority): Remove
prototypes.
* kern/sched_prim.h (update_priority, compute_my_priority): Add
prototypes.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/priority.c | 1 | ||||
-rw-r--r-- | kern/sched_prim.c | 2 | ||||
-rw-r--r-- | kern/sched_prim.h | 5 |
3 files changed, 6 insertions, 2 deletions
diff --git a/kern/priority.c b/kern/priority.c index 43d6101..feddd8e 100644 --- a/kern/priority.c +++ b/kern/priority.c @@ -41,6 +41,7 @@ #include <kern/mach_clock.h> #include <kern/mach_param.h> #include <kern/sched.h> +#include <kern/sched_prim.h> #include <kern/thread.h> #include <kern/processor.h> #include <kern/timer.h> diff --git a/kern/sched_prim.c b/kern/sched_prim.c index 70e253d..db3c1f2 100644 --- a/kern/sched_prim.c +++ b/kern/sched_prim.c @@ -69,8 +69,6 @@ int sched_usec; thread_t sched_thread_id; -void recompute_priorities(void); /* forward */ -void update_priority(thread_t); void set_pri(thread_t, int, boolean_t); void do_thread_scan(void); diff --git a/kern/sched_prim.h b/kern/sched_prim.h index 6a4c32d..a5416a5 100644 --- a/kern/sched_prim.h +++ b/kern/sched_prim.h @@ -104,6 +104,11 @@ extern boolean_t thread_handoff( continuation_t continuation, thread_t new_thread); extern void recompute_priorities(); +extern void update_priority( + thread_t thread); +extern void compute_my_priority( + thread_t thread); + /* * Routines defined as macros |