forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/arc/include/asm/irqflags-compact.h
....@@ -1,10 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com)
34 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
85 */
96
107 #ifndef __ASM_IRQFLAGS_ARCOMPACT_H
....@@ -93,6 +90,9 @@
9390 /*
9491 * Unconditionally Enable IRQs
9592 */
93
+#ifdef CONFIG_ARC_COMPACT_IRQ_LEVELS
94
+extern void arch_local_irq_enable(void);
95
+#else
9696 static inline void arch_local_irq_enable(void)
9797 {
9898 unsigned long temp;
....@@ -105,7 +105,7 @@
105105 : "n"((STATUS_E1_MASK | STATUS_E2_MASK))
106106 : "cc", "memory");
107107 }
108
-
108
+#endif
109109
110110 /*
111111 * Unconditionally Disable IRQs