diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-11-29 22:54:03 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-05 06:37:51 +0900 |
commit | e7131e441628bf173eabd64d5498eebcdd533b69 (patch) | |
tree | 7e05673116b0708eb559d2f4aa8fcb0fe8555dad | |
parent | f7a65556ad6c395d5001bbc1a27b334715b40a85 (diff) |
kern/sched_prim.c: remove forward declarations
* kern/sched_prim.c (set_pri, do_thread_scan, choose_pset_thread, checkrq, thread_check): Remove forward declarations.
* kern/sched_prim.h (set_pri, do_thread_scan, choose_pset_thread, checkrq, thread_check): Add prototypes.
-rw-r--r-- | kern/sched_prim.c | 10 | ||||
-rw-r--r-- | kern/sched_prim.h | 9 |
2 files changed, 9 insertions, 10 deletions
diff --git a/kern/sched_prim.c b/kern/sched_prim.c index 2946701..c06cd77 100644 --- a/kern/sched_prim.c +++ b/kern/sched_prim.c @@ -70,18 +70,8 @@ int sched_usec; thread_t sched_thread_id; -void set_pri(thread_t, int, boolean_t); -void do_thread_scan(void); - -thread_t choose_pset_thread(); - timer_elt_data_t recompute_priorities_timer; -#if DEBUG -void checkrq(run_queue_t, char *); -void thread_check(thread_t, run_queue_t); -#endif - /* * State machine * diff --git a/kern/sched_prim.h b/kern/sched_prim.h index e08f570..b7ecba7 100644 --- a/kern/sched_prim.h +++ b/kern/sched_prim.h @@ -172,4 +172,13 @@ extern void stack_free( #define convert_ipc_timeout_to_ticks(millis) \ (((millis) * hz + 999) / 1000) +void set_pri(thread_t th, int pri, boolean_t resched); +void do_thread_scan(void); +thread_t choose_pset_thread(processor_t myprocessor, processor_set_t pset); + +#if DEBUG +void checkrq(run_queue_t rq, char *msg); +void thread_check(thread_t th, run_queue_t rq); +#endif /* DEBUG */ + #endif /* _KERN_SCHED_PRIM_H_ */ |