summaryrefslogtreecommitdiff
path: root/kern/eventcount.h
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/eventcount.h
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/eventcount.h')
-rw-r--r--kern/eventcount.h6
1 files changed, 6 insertions, 0 deletions
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_ */