x86: Convert some slow-path static_cpu_has() callers to boot_cpu_has()
authorBorislav Petkov <bp@suse.de>
Fri, 29 Mar 2019 18:52:59 +0000 (19:52 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 8 Apr 2019 10:13:34 +0000 (12:13 +0200)
commit67e87d43b794a8886b5d075b3e0fdd0c615a595f
tree29d253d071132e7703a88f2c944d2b3096414864
parentbfdd5a67c8cb02c147c6b012543e84cb1f5759ba
x86: Convert some slow-path static_cpu_has() callers to boot_cpu_has()

Using static_cpu_has() is pointless on those paths, convert them to the
boot_cpu_has() variant.

No functional changes.

Reported-by: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Rik van Riel <riel@surriel.com>
Reviewed-by: Juergen Gross <jgross@suse.com> # for paravirt
Cc: Aubrey Li <aubrey.li@intel.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jann Horn <jannh@google.com>
Cc: Joerg Roedel <jroedel@suse.de>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Thomas Lendacky <Thomas.Lendacky@amd.com>
Cc: linux-edac@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: virtualization@lists.linux-foundation.org
Cc: x86@kernel.org
Link: https://lkml.kernel.org/r/20190330112022.28888-3-bp@alien8.de
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/apic/apic_numachip.c
arch/x86/kernel/cpu/aperfmperf.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/mce/inject.c
arch/x86/kernel/cpu/proc.c
arch/x86/kernel/ldt.c
arch/x86/kernel/paravirt.c
arch/x86/kernel/process.c
arch/x86/kernel/reboot.c
arch/x86/kernel/vm86_32.c