Linux 3.11-rc3
[cris-mirror.git] / arch / x86 / include / asm / xen / events.h
blobca842f2769efa1545951f52647b34a7e6c051c7f
1 #ifndef _ASM_X86_XEN_EVENTS_H
2 #define _ASM_X86_XEN_EVENTS_H
4 enum ipi_vector {
5 XEN_RESCHEDULE_VECTOR,
6 XEN_CALL_FUNCTION_VECTOR,
7 XEN_CALL_FUNCTION_SINGLE_VECTOR,
8 XEN_SPIN_UNLOCK_VECTOR,
9 XEN_IRQ_WORK_VECTOR,
11 XEN_NR_IPIS,
14 static inline int xen_irqs_disabled(struct pt_regs *regs)
16 return raw_irqs_disabled_flags(regs->flags);
19 /* No need for a barrier -- XCHG is a barrier on x86. */
20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
22 #endif /* _ASM_X86_XEN_EVENTS_H */