ALSA: hda - Add the top speaker pin config for HP Spectre x360
[linux/fpc-iii.git] / arch / x86 / include / asm / xen / events.h
blobe6911caf5bbf16ddc46430c44fcd4186258b713c
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,
10 XEN_NMI_VECTOR,
12 XEN_NR_IPIS,
15 static inline int xen_irqs_disabled(struct pt_regs *regs)
17 return raw_irqs_disabled_flags(regs->flags);
20 /* No need for a barrier -- XCHG is a barrier on x86. */
21 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
23 extern int xen_have_vector_callback;
26 * Events delivered via platform PCI interrupts are always
27 * routed to vcpu 0 and hence cannot be rebound.
29 static inline bool xen_support_evtchn_rebind(void)
31 return (!xen_hvm_domain() || xen_have_vector_callback);
34 #endif /* _ASM_X86_XEN_EVENTS_H */