| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) |
|---|
| 3 | 4 | * 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. |
|---|
| 8 | 5 | */ |
|---|
| 9 | 6 | |
|---|
| 10 | 7 | #ifndef __ASM_IRQFLAGS_ARCOMPACT_H |
|---|
| .. | .. |
|---|
| 93 | 90 | /* |
|---|
| 94 | 91 | * Unconditionally Enable IRQs |
|---|
| 95 | 92 | */ |
|---|
| 93 | +#ifdef CONFIG_ARC_COMPACT_IRQ_LEVELS |
|---|
| 94 | +extern void arch_local_irq_enable(void); |
|---|
| 95 | +#else |
|---|
| 96 | 96 | static inline void arch_local_irq_enable(void) |
|---|
| 97 | 97 | { |
|---|
| 98 | 98 | unsigned long temp; |
|---|
| .. | .. |
|---|
| 105 | 105 | : "n"((STATUS_E1_MASK | STATUS_E2_MASK)) |
|---|
| 106 | 106 | : "cc", "memory"); |
|---|
| 107 | 107 | } |
|---|
| 108 | | - |
|---|
| 108 | +#endif |
|---|
| 109 | 109 | |
|---|
| 110 | 110 | /* |
|---|
| 111 | 111 | * Unconditionally Disable IRQs |
|---|