[tip: locking/core] mips: Implement arch_irqs_disabled()
From: tip-bot2 for Peter Zijlstra
Date: Thu Aug 27 2020 - 03:57:19 EST
The following commit has been merged into the locking/core branch of tip:
Commit-ID: 99dc56feb7932020502d40107a712fa302b32082
Gitweb: https://git.kernel.org/tip/99dc56feb7932020502d40107a712fa302b32082
Author: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
AuthorDate: Sat, 22 Aug 2020 18:04:15 +02:00
Committer: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
CommitterDate: Wed, 26 Aug 2020 12:41:55 +02:00
mips: Implement arch_irqs_disabled()
Cc: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
Cc: Paul Burton <paulburton@xxxxxxxxxx>
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
Link: https://lkml.kernel.org/r/20200826101653.GE1362448@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
---
arch/mips/include/asm/irqflags.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/mips/include/asm/irqflags.h b/arch/mips/include/asm/irqflags.h
index 47a8ffc..f5b8300 100644
--- a/arch/mips/include/asm/irqflags.h
+++ b/arch/mips/include/asm/irqflags.h
@@ -137,6 +137,11 @@ static inline int arch_irqs_disabled_flags(unsigned long flags)
return !(flags & 1);
}
+static inline int arch_irqs_disabled(void)
+{
+ return arch_irqs_disabled_flags(arch_local_save_flags());
+}
+
#endif /* #ifndef __ASSEMBLY__ */
/*