aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/xen/events.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/xen/events.h')
-rw-r--r--arch/x86/include/asm/xen/events.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/xen/events.h b/arch/x86/include/asm/xen/events.h
index cc146d51449e..ca842f2769ef 100644
--- a/arch/x86/include/asm/xen/events.h
+++ b/arch/x86/include/asm/xen/events.h
@@ -16,4 +16,7 @@ static inline int xen_irqs_disabled(struct pt_regs *regs)
return raw_irqs_disabled_flags(regs->flags);
}
+/* No need for a barrier -- XCHG is a barrier on x86. */
+#define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
+
#endif /* _ASM_X86_XEN_EVENTS_H */