Skip to content

Commit 021c109

Browse files
author
Peter Zijlstra
committed
arm64: Implement arch_irqs_disabled()
Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 36206b5 commit 021c109

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm64/include/asm/irqflags.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ static inline int arch_irqs_disabled_flags(unsigned long flags)
9595
return res;
9696
}
9797

98+
static inline int arch_irqs_disabled(void)
99+
{
100+
return arch_irqs_disabled_flags(arch_local_save_flags());
101+
}
102+
98103
static inline unsigned long arch_local_irq_save(void)
99104
{
100105
unsigned long flags;

0 commit comments

Comments
 (0)