From: Xiongfeng Wang <wangxiongfeng2(a)huawei.com>
commit 141482cb4b018134cc0e949430f936a22b339fca openEuler-1.0.
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: Xiongfeng Wang <wangxiongfeng2(a)huawei.com>
Reviewed-by: Kefeng Wang <wangkefeng.wang(a)huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang(a)huawei.com>
Signed-off-by: Xin Hao <haoxing990(a)gmail.com>
---
init/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/init/main.c b/init/main.c
index 38a603f62b7b..70b59738452e 100644
--- a/init/main.c
+++ b/init/main.c
@@ -1132,7 +1132,6 @@ static noinline void __init kernel_init_freeable(void)
init_mm_internals();
do_pre_smp_initcalls();
- lockup_detector_init();
smp_init();
sched_init_smp();
@@ -1143,6 +1142,8 @@ static noinline void __init kernel_init_freeable(void)
do_basic_setup();
+ lockup_detector_init();
+
/* Open the /dev/console on the rootfs, this should never fail */
if (ksys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
pr_err("Warning: unable to open an initial console.\n");
--
2.31.0