Home Home > GIT Browse > SLE15-SP1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2019-05-17 19:24:12 +0200
committerBorislav Petkov <bp@suse.de>2019-05-17 19:24:12 +0200
commit7aa628c3bc0f9d0d2e4ea45451f4d8e5632d4557 (patch)
tree7e0db88e157c1378a7bfc2271fdf7ceac58bdc36
parent490412a0ead0d48ba6f84dc9cdcc6dba026de628 (diff)
x86/alternative: Init ideal_nops for Hygon Dhyana (fate#327735).
-rw-r--r--arch/x86/kernel/alternative.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index f13f4f26e140..d30f0c7b494c 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -222,6 +222,10 @@ void __init arch_init_ideal_nops(void)
}
break;
+ case X86_VENDOR_HYGON:
+ ideal_nops = p6_nops;
+ return;
+
case X86_VENDOR_AMD:
if (boot_cpu_data.x86 > 0xf) {
ideal_nops = p6_nops;