summaryrefslogtreecommitdiff
path: root/kern/work.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/work.h')
-rw-r--r--kern/work.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/kern/work.h b/kern/work.h
index 6e3876f0..a8df1f7e 100644
--- a/kern/work.h
+++ b/kern/work.h
@@ -26,6 +26,8 @@
#ifndef _KERN_WORK_H
#define _KERN_WORK_H
+#include <kern/init.h>
+
/*
* Work scheduling flags.
*/
@@ -134,11 +136,6 @@ work_init(struct work *work, work_fn_t fn)
}
/*
- * Initialize the work module.
- */
-void work_setup(void);
-
-/*
* Schedule work for deferred processing.
*
* This function may be called from interrupt context.
@@ -156,4 +153,11 @@ void work_queue_schedule(struct work_queue *queue, int flags);
*/
void work_report_periodic_event(void);
+/*
+ * This init operation provides :
+ * - works can be scheduled
+ * - module fully initialized
+ */
+INIT_OP_DECLARE(work_setup);
+
#endif /* _KERN_WORK_H */