]> git.hungrycats.org Git - linux/commit
x86/bugs: Expose x86_spec_ctrl_base directly
authorThomas Gleixner <tglx@linutronix.de>
Sat, 12 May 2018 18:49:16 +0000 (20:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 May 2018 16:56:31 +0000 (18:56 +0200)
commit6f350863c98e0f95634178ea81bc8ff08db14cab
tree12c763616cd226b73ecee231883c199f4d2ee13d
parentaaf6e76e6a30481458ce7d87ec6d35b39903fed6
x86/bugs: Expose x86_spec_ctrl_base directly

commit fa8ac4988249c38476f6ad678a4848a736373403 upstream

x86_spec_ctrl_base is the system wide default value for the SPEC_CTRL MSR.
x86_spec_ctrl_get_default() returns x86_spec_ctrl_base and was intended to
prevent modification to that variable. Though the variable is read only
after init and globaly visible already.

Remove the function and export the variable instead.

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