diff options
author | Tal Shorer <tal.shorer@gmail.com> | 2017-11-03 16:27:49 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-11-27 17:56:57 +0100 |
commit | 7d229c668a114e80d6be62b00e21a73bdd9ba7b3 (patch) | |
tree | d1b9bb3f661e7d8c53fc6491b29f5ad4bfdd4977 /init | |
parent | Linux 4.15-rc1 (diff) | |
download | linux-7d229c668a114e80d6be62b00e21a73bdd9ba7b3.tar.xz linux-7d229c668a114e80d6be62b00e21a73bdd9ba7b3.zip |
main: kernel_start: move housekeeping_init() before workqueue_init_early()
This is needed in order to allow the unbound workqueue to take
housekeeping cpus into accounty
Signed-off-by: Tal Shorer <tal.shorer@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index dfec3809e740..e96e3a14533c 100644 --- a/init/main.c +++ b/init/main.c @@ -589,6 +589,12 @@ asmlinkage __visible void __init start_kernel(void) radix_tree_init(); /* + * Set up housekeeping before setting up workqueues to allow the unbound + * workqueue to take non-housekeeping into account. + */ + housekeeping_init(); + + /* * Allow workqueue creation and work item queueing/cancelling * early. Work item execution depends on kthreads and starts after * workqueue_init(). @@ -605,7 +611,6 @@ asmlinkage __visible void __init start_kernel(void) early_irq_init(); init_IRQ(); tick_init(); - housekeeping_init(); rcu_init_nohz(); init_timers(); hrtimers_init(); |