Commit 07842846 authored by Xiongfeng Wang's avatar Xiongfeng Wang
Browse files

lockup_detector: init lockup detector after all the init_calls

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8LQCC


CVE: NA

-------------------------------------------------

We call 'sdei_init' as 'subsys_initcall_sync'. lockup detector need to
be initialised after sdei_init. The influence of this patch is that we
can not detect the hard lockup in init_calls.

Signed-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
parent 2b61c880
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1539,7 +1539,6 @@ static noinline void __init kernel_init_freeable(void)

	rcu_init_tasks_generic();
	do_pre_smp_initcalls();
	lockup_detector_init();

	smp_init();
	sched_init_smp();
@@ -1550,6 +1549,8 @@ static noinline void __init kernel_init_freeable(void)

	do_basic_setup();

	lockup_detector_init();

	kunit_run_all_tests();

	wait_for_initramfs();