hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/nds32/include/asm/irqflags.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0
1
+/* SPDX-License-Identifier: GPL-2.0 */
22 // Copyright (C) 2005-2017 Andes Technology Corporation
33
44 #include <asm/nds32.h>
....@@ -34,3 +34,8 @@
3434 {
3535 return !flags;
3636 }
37
+
38
+static inline int arch_irqs_disabled(void)
39
+{
40
+ return arch_irqs_disabled_flags(arch_local_save_flags());
41
+}