Commit 1fdfd5ee authored by Xu Qiang's avatar Xu Qiang Committed by Zheng Zengkai
Browse files

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: default avatarXu Qiang <xuqiang36@huawei.com>
Reviewed-by: default avatarDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent dd8409a9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -148,6 +148,10 @@ void watchdog_check_hrtimer(void)
	if (cpu == smp_processor_id())
		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 core mustn't hangs if hrtimer still working.