summaryrefslogtreecommitdiff
path: root/kern/sleepq.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/sleepq.h')
-rw-r--r--kern/sleepq.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/kern/sleepq.h b/kern/sleepq.h
index f55d8c4b..651b3e7c 100644
--- a/kern/sleepq.h
+++ b/kern/sleepq.h
@@ -38,21 +38,9 @@
#include <stdbool.h>
-struct sleepq;
+#include <kern/init.h>
-/*
- * Early initialization of the sleepq module.
- *
- * This module is initialized by architecture-specific code. It should
- * be one of the first modules to be initialized since it's used by
- * synchronization objects that may be accessed very early.
- */
-void sleepq_bootstrap(void);
-
-/*
- * Initialize the sleepq module.
- */
-void sleepq_setup(void);
+struct sleepq;
/*
* Create/destroy a sleep queue.
@@ -142,4 +130,17 @@ void sleepq_wait(struct sleepq *sleepq, const char *wchan);
*/
void sleepq_signal(struct sleepq *sleepq);
+/*
+ * This init operation provides :
+ * - ? TODO Review
+ */
+INIT_OP_DECLARE(sleepq_bootstrap);
+
+/*
+ * This init operation provides :
+ * - sleepq creation
+ * - module fully initialized
+ */
+INIT_OP_DECLARE(sleepq_setup);
+
#endif /* _KERN_SLEEPQ_H */