Cc: Catalin Marinas <catalin.mari...@arm.com> Cc: Will Deacon <w...@kernel.org> Reported-by: kernel test robot <l...@intel.com> Signed-off-by: Peter Zijlstra (Intel) <pet...@infradead.org> --- arch/arm64/include/asm/irqflags.h | 5 +++++ 1 file changed, 5 insertions(+)
--- a/arch/arm64/include/asm/irqflags.h +++ b/arch/arm64/include/asm/irqflags.h @@ -95,6 +95,11 @@ static inline int arch_irqs_disabled_fla return res; } +static inline int arch_irqs_disabled(void) +{ + return arch_irqs_disabled_flags(arch_local_save_flags()); +} + static inline unsigned long arch_local_irq_save(void) { unsigned long flags;