x86/fsgsbase: Replace static_cpu_has() with boot_cpu_has()
authorBorislav Petkov <bp@suse.de>
Tue, 18 Aug 2020 10:28:31 +0000 (12:28 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 24 Aug 2020 16:18:32 +0000 (18:18 +0200)
commit5f1dd4dda5c8796c405e856aaa11e187f6885924
treec926f850d07a282d7e86cc78cfda37ed26694e98
parent0b2c605fa4ee3117c00b97b7af67791576b28f88
x86/fsgsbase: Replace static_cpu_has() with boot_cpu_has()

ptrace and prctl() are not really fast paths to warrant the use of
static_cpu_has() and cause alternatives patching for no good reason.
Replace with boot_cpu_has() which is simple and fast enough.

No functional changes.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200818103715.32736-1-bp@alien8.de
arch/x86/include/asm/fsgsbase.h
arch/x86/kernel/process_64.c