]> www.infradead.org Git - users/jedix/linux-maple.git/commit
retpoline/module: add bit defs for use_ibpb
authorChuck Anderson <chuck.anderson@oracle.com>
Mon, 12 Feb 2018 06:27:25 +0000 (22:27 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 2 Mar 2018 22:03:34 +0000 (14:03 -0800)
commit8bd019739319bb4ee04d0b16094fb39a97c38bb8
treeaf0e33dbd80b20169b886f784f4f6bf2805db26c
parentf38a86c75d1df9ecf5c5efe3d58349f974607364
retpoline/module: add bit defs for use_ibpb

Replace bit references for IBPB state in use_ibpb with:

    SPEC_CTRL_IBPB_INUSE
    SPEC_CTRL_IBPB_SUPPORTED
    SPEC_CTRL_IBPB_ADMIN_DISABLED

Change comment block describing use_ibrs flags to use symbolic values.
Remove duplicate comment block describing flag values in use_ibrs and use_ibpb.
Cosmetic change to defs for sysctl_ibrs_enabled, sysctl_ibpb_enabled and
sysctl_lfence_enabled in preparation for adding additional sysctl_* values.

Orabug: 27457549

Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
arch/x86/kernel/cpu/spec_ctrl.c
arch/x86/include/asm/spec_ctrl.h
arch/x86/kernel/cpu/bugs_64.c
arch/x86/kernel/cpu/spec_ctrl.c