kernel/arch/nds32/include/asm/irqflags.h
.. .. @@ -1,4 +1,4 @@ 1 -// SPDX-License-Identifier: GPL-2.01 +/* SPDX-License-Identifier: GPL-2.0 */2 2 // Copyright (C) 2005-2017 Andes Technology Corporation 3 3 4 4 #include <asm/nds32.h> .. .. @@ -34,3 +34,8 @@ 34 34 { 35 35 return !flags; 36 36 } 37 +38 +static inline int arch_irqs_disabled(void)39 +{40 + return arch_irqs_disabled_flags(arch_local_save_flags());41 +}