| From | Lai Jiangshan <> | Subject | [PATCH V6 26/49] x86: Remove the definition of SWAPGS | Date | Fri, 26 Nov 2021 18:11:46 +0800 |
| |
From: Lai Jiangshan <laijs@linux.alibaba.com>
There is no user of the pv-aware SWAPGS anymore.
Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com> --- arch/x86/include/asm/irqflags.h | 8 -------- 1 file changed, 8 deletions(-)
diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h index c5ce9845c999..da41a80eb912 100644 --- a/arch/x86/include/asm/irqflags.h +++ b/arch/x86/include/asm/irqflags.h @@ -139,14 +139,6 @@ static __always_inline void arch_local_irq_restore(unsigned long flags) if (!arch_irqs_disabled_flags(flags)) arch_local_irq_enable(); } -#else -#ifdef CONFIG_X86_64 -#ifdef CONFIG_XEN_PV -#define SWAPGS ALTERNATIVE "swapgs", "", X86_FEATURE_XENPV -#else -#define SWAPGS swapgs -#endif -#endif #endif /* !__ASSEMBLY__ */ #endif -- 2.19.1.6.gb485710b
|