diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-08-20 10:27:52 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-08-26 13:41:55 +0300 |
commit | 36206b588bc815e5f64e8da72d7ab79e00b76281 (patch) | |
tree | c9eb744d476b507981c126aab6d0fcf2c8d0651a | |
parent | 00b0ed2d4997af6d0a93edef820386951fd66d94 (diff) | |
download | linux-36206b588bc815e5f64e8da72d7ab79e00b76281.tar.xz |
nds32: Implement arch_irqs_disabled()
Cc: Nick Hu <nickhu@andestech.com>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Vincent Chen <deanbo422@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Marco Elver <elver@google.com>
Link: https://lkml.kernel.org/r/20200821085348.604899379@infradead.org
-rw-r--r-- | arch/nds32/include/asm/irqflags.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/nds32/include/asm/irqflags.h b/arch/nds32/include/asm/irqflags.h index fb45ec46bb1b..51ef800bb301 100644 --- a/arch/nds32/include/asm/irqflags.h +++ b/arch/nds32/include/asm/irqflags.h @@ -34,3 +34,8 @@ static inline int arch_irqs_disabled_flags(unsigned long flags) { return !flags; } + +static inline int arch_irqs_disabled(void) +{ + return arch_irqs_disabled_flags(arch_local_save_flags()); +} |