projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
021c109
)
mips: Implement arch_irqs_disabled()
author
Peter Zijlstra
<peterz@infradead.org>
Sat, 22 Aug 2020 16:04:15 +0000
(18:04 +0200)
committer
Peter Zijlstra
<peterz@infradead.org>
Wed, 26 Aug 2020 10:41:55 +0000
(12:41 +0200)
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
arch/mips/include/asm/irqflags.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/irqflags.h
b/arch/mips/include/asm/irqflags.h
index
47a8ffc
..
f5b8300
100644
(file)
--- 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__ */
/*