mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 12:21:37 +00:00
b0506a8bbb
The status of interrupts might depend on more than just pstate. Use interrupts_disabled() instead of raw_irqs_disabled_flags() to take the full context into account. Acked-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Julien Thierry <julien.thierry@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
29 lines
548 B
C
29 lines
548 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_ARM64_XEN_EVENTS_H
|
|
#define _ASM_ARM64_XEN_EVENTS_H
|
|
|
|
#include <asm/ptrace.h>
|
|
#include <asm/atomic.h>
|
|
|
|
enum ipi_vector {
|
|
XEN_PLACEHOLDER_VECTOR,
|
|
|
|
/* Xen IPIs go here */
|
|
XEN_NR_IPIS,
|
|
};
|
|
|
|
static inline int xen_irqs_disabled(struct pt_regs *regs)
|
|
{
|
|
return !interrupts_enabled(regs);
|
|
}
|
|
|
|
#define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
|
|
|
/* Rebind event channel is supported by default */
|
|
static inline bool xen_support_evtchn_rebind(void)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
#endif /* _ASM_ARM64_XEN_EVENTS_H */
|