summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-07-16 00:06:49 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:15 +0200
commit9988809c45696331e4ff6a831653f042211ad8ae (patch)
tree4febbbfab596d20641f43586c2ccb6dd1ff276c2
parent79dac7c8bdfc3e22d0caf20f11ffbbbabf50e3ee (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.
-rw-r--r--ChangeLog5
-rw-r--r--kern/priority.c1
-rw-r--r--kern/sched_prim.c2
-rw-r--r--kern/sched_prim.h5
4 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bdd74a0..f7f7dfc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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