lockup_detector: init lockup detector after all the init_calls

commit bef7d8e1432400f3d78339ac269167e09c15dabd openeuler.

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: huwentao <huwentao19@h-partners.com>
This commit is contained in:
Xiongfeng Wang 2021-02-20 11:00:57 +08:00 committed by lcy
parent 00082d7172
commit 545b1214b3
1 changed files with 2 additions and 1 deletions

View File

@ -1196,7 +1196,6 @@ static noinline void __init kernel_init_freeable(void)
init_mm_internals(); init_mm_internals();
do_pre_smp_initcalls(); do_pre_smp_initcalls();
lockup_detector_init();
smp_init(); smp_init();
sched_init_smp(); sched_init_smp();
@ -1207,6 +1206,8 @@ static noinline void __init kernel_init_freeable(void)
do_basic_setup(); do_basic_setup();
lockup_detector_init();
/* Open the /dev/console on the rootfs, this should never fail */ /* Open the /dev/console on the rootfs, this should never fail */
if (ksys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0) if (ksys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
pr_err("Warning: unable to open an initial console.\n"); pr_err("Warning: unable to open an initial console.\n");