Commit c6ce2bec authored by caijian's avatar caijian Committed by Hao Chen
Browse files

arm64/cpufeature: Fix pseudo nmi identifier undeclaration complilation error

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9QOYJ


CVE: NA

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

Fix pseudo nmi identifier undeclaration complilation error.

Fixes: b8c8255e ("arm64: Decouple KVM from CONFIG_ARM64_NMI")
Signed-off-by: default avatarcaijian <caijian11@h-partners.com>
parent bb74bc36
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2196,10 +2196,12 @@ static bool use_nmi(const struct arm64_cpu_capabilities *entry, int scope)
	 */
	if (!IS_ENABLED(CONFIG_ARM64_NMI))
		pr_info("CONFIG_ARM64_NMI disabled, using NMIs for guests only\n");
#ifdef CONFIG_ARM64_PSEUDO_NMI
	else if (IS_ENABLED(CONFIG_ARM64_PSEUDO_NMI) && enable_pseudo_nmi) {
		pr_info("Pseudo NMI enabled, not using architected NMI\n");
		return false;
	}
#endif

	return true;
}