diff options
author | Richard Braun <rbraun@sceen.net> | 2017-03-15 21:56:59 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-03-15 21:56:59 +0100 |
commit | 0aec57ffff86fe2d9498eb6cc892ca85443bc8cc (patch) | |
tree | 4c9073f434f7d30e8a87526d4d46fbc4cb819be1 /kern/work.c | |
parent | 196eae0d9ee0d2d8ca42e96e49d6988313d39f6d (diff) |
kern/work: move work_pool_init and work_setup to the .init section
Diffstat (limited to 'kern/work.c')
-rw-r--r-- | kern/work.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/work.c b/kern/work.c index c55d85d4..3783df42 100644 --- a/kern/work.c +++ b/kern/work.c @@ -20,6 +20,7 @@ #include <kern/assert.h> #include <kern/bitmap.h> #include <kern/error.h> +#include <kern/init.h> #include <kern/kmem.h> #include <kern/list.h> #include <kern/macros.h> @@ -156,7 +157,7 @@ work_pool_compute_max_threads(unsigned int nr_cpus) return max_threads; } -static void +static void __init work_pool_init(struct work_pool *pool, unsigned int cpu, int flags) { char name[SYSCNT_NAME_SIZE]; @@ -472,7 +473,7 @@ work_thread_destroy(struct work_thread *worker) kmem_cache_free(&work_thread_cache, worker); } -void +void __init work_setup(void) { unsigned int i; |