diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | kern/priority.c | 1 | ||||
-rw-r--r-- | kern/sched_prim.c | 2 | ||||
-rw-r--r-- | kern/sched_prim.h | 5 |
4 files changed, 11 insertions, 2 deletions
@@ -35,6 +35,11 @@ * kern/ipc_kobject.c: Include <vm/vm_object.h> * vm/vm_object.h: Include <sys/types.h> and <ipc/ipc_types.h>. (vm_object_coalesce, vm_object_pager_wakeup): Add prototypes. + * 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. 2008-07-04 Samuel Thibault <samuel.thibault@ens-lyon.org> 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 |