diff options
author | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
commit | dd78bb04876f66e967773d6dd03ea9534fe43cc2 (patch) | |
tree | 4d3080abf0cbcca7c058cba5cad2ed71e5d5e1e5 /kern/work.h | |
parent | 85292d947faabe8828810946c7a8067ef228d6fe (diff) |
Switch to initialization operations
Diffstat (limited to 'kern/work.h')
-rw-r--r-- | kern/work.h | 14 |
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 */ |