summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2020-08-22 18:04:15 +0200
committerPeter Zijlstra <peterz@infradead.org>2020-08-26 12:41:55 +0200
commit99dc56feb7932020502d40107a712fa302b32082 (patch)
tree9b5b047fd83b6767feec76d8217a8bd0719e014c /arch/mips
parentarm64: Implement arch_irqs_disabled() (diff)
downloadlinux-99dc56feb7932020502d40107a712fa302b32082.tar.xz
linux-99dc56feb7932020502d40107a712fa302b32082.zip
mips: Implement arch_irqs_disabled()
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: Paul Burton <paulburton@kernel.org> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20200826101653.GE1362448@hirez.programming.kicks-ass.net
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/include/asm/irqflags.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/include/asm/irqflags.h b/arch/mips/include/asm/irqflags.h
index 47a8ffc0b413..f5b8300f4573 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__ */
/*