提交 1fdfd5ee 编写于 作者: X Xu Qiang 提交者: Zheng Zengkai

watchdog/corelockup: Depends on the hardlockup detection switch

ascend inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4F3V1
CVE: NA

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

When hard lockup detection is disabled, core lockup
detection is not performed.
Signed-off-by: NXu Qiang <xuqiang36@huawei.com>
Reviewed-by: NDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 dd8409a9
...@@ -148,6 +148,10 @@ void watchdog_check_hrtimer(void) ...@@ -148,6 +148,10 @@ void watchdog_check_hrtimer(void)
if (cpu == smp_processor_id()) if (cpu == smp_processor_id())
return; return;
/* return if hard lockup detector is disable */
if (!(watchdog_enabled & NMI_WATCHDOG_ENABLED))
return;
/* /*
* The freq of hrtimer is fast than nmi interrupts and * The freq of hrtimer is fast than nmi interrupts and
* the core mustn't hangs if hrtimer still working. * the core mustn't hangs if hrtimer still working.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册