mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
The generic entry code expects architecture code to provide regs_irqs_disabled(regs) function, but arm64 does not have this and provides interrupts_enabled(regs), which has the opposite polarity. In preparation for moving arm64 over to the generic entry code, relace arm64's interrupts_enabled() with regs_irqs_disabled() and update its callers under arch/arm64. For the moment, a definition of interrupts_enabled() is provided for the GICv3 driver. Once arch/arm implement regs_irqs_disabled(), this can be removed. Delete the fast_interrupts_enabled() macro as it is unused and we don't want any new users to show up. No functional changes. Reviewed-by: Ada Couprie Diaz <ada.coupriediaz@arm.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Suggested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will@kernel.org>
29 lines
547 B
C
29 lines
547 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 regs_irqs_disabled(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 */
|