summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-23 15:29:30 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-24 22:56:46 +0100
commita40ba17874eb44c206218223df338a3d9f8704f9 (patch)
treea6bdcf35325e0f10e881ddafddd83c83c2168d6a
parent47942d8e24b2764985da0ac6334f2f8ac8bea9ed (diff)
kern: move forward declarations into a header file
* kern/machine.c (processor_doaction, processor_doshutdown): Remove forward declarations. * kern/processor.h (processor_doaction, processor_doshutdown): Add prototypes.
-rw-r--r--kern/machine.c7
-rw-r--r--kern/processor.h7
2 files changed, 7 insertions, 7 deletions
diff --git a/kern/machine.c b/kern/machine.c
index f69e728..3dadeb5 100644
--- a/kern/machine.c
+++ b/kern/machine.c
@@ -361,8 +361,6 @@ processor_t processor;
/*
* action_thread() shuts down processors or changes their assignment.
*/
-void processor_doaction(); /* forward */
-
void action_thread_continue()
{
processor_t processor;
@@ -403,11 +401,6 @@ void action_thread()
* is to schedule ourselves onto a cpu and then save our
* context back into the runqs before taking out the cpu.
*/
-#ifdef __GNUC__
-__volatile__
-#endif
-void processor_doshutdown(); /* forward */
-
void processor_doaction(processor)
processor_t processor;
{
diff --git a/kern/processor.h b/kern/processor.h
index 9a6c944..ea69c23 100644
--- a/kern/processor.h
+++ b/kern/processor.h
@@ -320,4 +320,11 @@ extern kern_return_t processor_set_threads(
natural_t *count);
#endif
+void processor_doaction(processor_t processor);
+
+#ifdef __GNUC__
+__volatile__
+#endif
+void processor_doshutdown(processor_t processor);
+
#endif /* _KERN_PROCESSOR_H_ */