summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-23 15:29:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-24 22:55:04 +0100
commit47942d8e24b2764985da0ac6334f2f8ac8bea9ed (patch)
treee0ff2831537c4333b4c7abdc28ac297de09238d1 /kern
parent16e5483d9e23593cb1e7f348301a63c6cdfdfe86 (diff)
kern: move forward declaration into a header file
* kern/eventcount.c [NCPUS] (simpler_thread_setrun): Remove forward declaration. * kern/eventcount.h [NCPUS] (simpler_thread_setrun): Add prototype.
Diffstat (limited to 'kern')
-rw-r--r--kern/eventcount.c7
-rw-r--r--kern/eventcount.h6
2 files changed, 6 insertions, 7 deletions
diff --git a/kern/eventcount.c b/kern/eventcount.c
index 5025000..aa3f1e3 100644
--- a/kern/eventcount.c
+++ b/kern/eventcount.c
@@ -53,13 +53,6 @@
#include <kern/eventcount.h>
-
-#if NCPUS <= 1
-void simpler_thread_setrun(
- thread_t th,
- boolean_t may_preempt); /* forward */
-#endif
-
#define MAX_EVCS 10 /* xxx for now */
evc_t all_eventcounters[MAX_EVCS];
diff --git a/kern/eventcount.h b/kern/eventcount.h
index 6872a34..4a4125c 100644
--- a/kern/eventcount.h
+++ b/kern/eventcount.h
@@ -56,4 +56,10 @@ extern kern_return_t evc_wait(natural_t ev_id);
extern void evc_notify_abort (thread_t thread);
+#if NCPUS <= 1
+void simpler_thread_setrun(
+ thread_t th,
+ boolean_t may_preempt);
+#endif
+
#endif /* _KERN_EVENTCOUNT_H_ */