Messages in this thread Patch in this message | | | Date | Thu, 20 Aug 2020 09:30:38 +0200 | From | Peter Zijlstra <> | Subject | [PATCH 7/9] nds32: Implement arch_irqs_disabled() |
| |
Cc: Nick Hu <nickhu@andestech.com> Cc: Greentime Hu <green.hu@gmail.com> Cc: Vincent Chen <deanbo422@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> --- arch/nds32/include/asm/irqflags.h | 5 +++++ 1 file changed, 5 insertions(+)
--- a/arch/nds32/include/asm/irqflags.h +++ b/arch/nds32/include/asm/irqflags.h @@ -34,3 +34,8 @@ static inline int arch_irqs_disabled_fla { return !flags; } + +static inline int arch_irqs_disabled(void) +{ + return arch_irqs_disabled_flags(arch_local_save_flags()); +}
| |