Cc: Nick Hu <nic...@andestech.com> Cc: Greentime Hu <green...@gmail.com> Cc: Vincent Chen <deanbo...@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <pet...@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()); +}