mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
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>
This commit is contained in:
parent
4fbd8d194f
commit
7d229c668a
1 changed files with 6 additions and 1 deletions
|
@ -588,6 +588,12 @@ asmlinkage __visible void __init start_kernel(void)
|
||||||
local_irq_disable();
|
local_irq_disable();
|
||||||
radix_tree_init();
|
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
|
* Allow workqueue creation and work item queueing/cancelling
|
||||||
* early. Work item execution depends on kthreads and starts after
|
* early. Work item execution depends on kthreads and starts after
|
||||||
|
@ -605,7 +611,6 @@ asmlinkage __visible void __init start_kernel(void)
|
||||||
early_irq_init();
|
early_irq_init();
|
||||||
init_IRQ();
|
init_IRQ();
|
||||||
tick_init();
|
tick_init();
|
||||||
housekeeping_init();
|
|
||||||
rcu_init_nohz();
|
rcu_init_nohz();
|
||||||
init_timers();
|
init_timers();
|
||||||
hrtimers_init();
|
hrtimers_init();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue