Skip to content

Commit 99dc56f

Browse files
author
Peter Zijlstra
committed
mips: Implement arch_irqs_disabled()
Cc: Thomas Bogendoerfer <[email protected]> Cc: Paul Burton <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 021c109 commit 99dc56f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/mips/include/asm/irqflags.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ static inline int arch_irqs_disabled_flags(unsigned long flags)
137137
return !(flags & 1);
138138
}
139139

140+
static inline int arch_irqs_disabled(void)
141+
{
142+
return arch_irqs_disabled_flags(arch_local_save_flags());
143+
}
144+
140145
#endif /* #ifndef __ASSEMBLY__ */
141146

142147
/*

0 commit comments

Comments
 (0)