x86/bugs: Remove x86_spec_ctrl_set()
authorThomas Gleixner <tglx@linutronix.de>
Sat, 12 May 2018 18:53:14 +0000 (20:53 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 17 May 2018 15:09:20 +0000 (17:09 +0200)
commit4b59bdb569453a60b752b274ca61f009e37f4dae
tree9b43f28a6cfdd991a90b3c7f2f507c7561152fb3
parentfa8ac4988249c38476f6ad678a4848a736373403
x86/bugs: Remove x86_spec_ctrl_set()

x86_spec_ctrl_set() is only used in bugs.c and the extra mask checks there
provide no real value as both call sites can just write x86_spec_ctrl_base
to MSR_SPEC_CTRL. x86_spec_ctrl_base is valid and does not need any extra
masking or checking.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/nospec-branch.h
arch/x86/kernel/cpu/bugs.c