Commit 7565caab authored by Thorsten Blum's avatar Thorsten Blum Committed by Borislav Petkov (AMD)
Browse files

x86/cpu: Use str_yes_no() helper in show_cpuinfo_misc()



Remove hard-coded strings by using the str_yes_no() helper function.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241026110808.78074-1-thorsten.blum@linux.dev
parent cdccaab0
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -41,11 +41,11 @@ static void show_cpuinfo_misc(struct seq_file *m, struct cpuinfo_x86 *c)
		   "fpu_exception\t: %s\n"
		   "cpuid level\t: %d\n"
		   "wp\t\t: yes\n",
		   boot_cpu_has_bug(X86_BUG_FDIV) ? "yes" : "no",
		   boot_cpu_has_bug(X86_BUG_F00F) ? "yes" : "no",
		   boot_cpu_has_bug(X86_BUG_COMA) ? "yes" : "no",
		   boot_cpu_has(X86_FEATURE_FPU) ? "yes" : "no",
		   boot_cpu_has(X86_FEATURE_FPU) ? "yes" : "no",
		   str_yes_no(boot_cpu_has_bug(X86_BUG_FDIV)),
		   str_yes_no(boot_cpu_has_bug(X86_BUG_F00F)),
		   str_yes_no(boot_cpu_has_bug(X86_BUG_COMA)),
		   str_yes_no(boot_cpu_has(X86_FEATURE_FPU)),
		   str_yes_no(boot_cpu_has(X86_FEATURE_FPU)),
		   c->cpuid_level);
}
#else