]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
x86/speculation: Drop unused DISABLE_IBRS_CLOBBER macro
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 21 Nov 2018 21:15:26 +0000 (16:15 -0500)
committerBrian Maly <brian.maly@oracle.com>
Tue, 27 Nov 2018 18:08:51 +0000 (13:08 -0500)
... and x86_spec_ctrl_base declaration in ASM part of the file.

Orabug: 28814570

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/include/asm/spec_ctrl.h

index 68ff83e2924771f2d7903c3d76641185badd7cdc..f3d58700b132d4cef0170b93ac72c996830fc989 100644 (file)
@@ -16,7 +16,6 @@
 .extern use_ibrs
 .extern use_ibpb
 .extern x86_spec_ctrl_priv
-.extern x86_spec_ctrl_base
 
 #define __ASM_ENABLE_IBRS                      \
        pushq %rax;                             \
        popq %rdx;                              \
        popq %rcx;                              \
        popq %rax
-#define __ASM_DISABLE_IBRS_CLOBBER             \
-       movl $MSR_IA32_SPEC_CTRL, %ecx;         \
-       movl $0, %edx;                          \
-       movl x86_spec_ctrl_base, %eax;          \
-       wrmsr;
 
 #define __ASM_STUFF_RSB                                \
        call    1f;                             \
 ALTERNATIVE "", __stringify(__ASM_SET_IBPB), X86_FEATURE_IBRS
 .endm
 
-.macro DISABLE_IBRS_CLOBBER
-ALTERNATIVE "", __stringify(__ASM_DISABLE_IBRS_CLOBBER), X86_FEATURE_IBRS
-.endm
-
 .macro STUFF_RSB
 ALTERNATIVE __stringify(__ASM_STUFF_RSB), "", X86_FEATURE_STUFF_RSB
 .endm