diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2020-05-13 11:08:23 +0300 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2020-06-16 22:56:37 +0300 |
commit | 33b59f1671f105a6da9c0aa75d7cf6bea126d2c5 (patch) | |
tree | 17c496418557bb334ac62258a40abe0120565550 /arch/arc/include/asm/irqflags-compact.h | |
parent | 00fdec98d9881bf5173af09aebd353ab3b9ac729 (diff) | |
download | linux-33b59f1671f105a6da9c0aa75d7cf6bea126d2c5.tar.xz |
ARC: [arcompact] fix bitrot with 2 levels of interrupt
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/irqflags-compact.h')
-rw-r--r-- | arch/arc/include/asm/irqflags-compact.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arc/include/asm/irqflags-compact.h b/arch/arc/include/asm/irqflags-compact.h index 7fc73fef5e29..863d63ad18d6 100644 --- a/arch/arc/include/asm/irqflags-compact.h +++ b/arch/arc/include/asm/irqflags-compact.h @@ -90,6 +90,9 @@ static inline void arch_local_irq_restore(unsigned long flags) /* * Unconditionally Enable IRQs */ +#ifdef CONFIG_ARC_COMPACT_IRQ_LEVELS +extern void arch_local_irq_enable(void); +#else static inline void arch_local_irq_enable(void) { unsigned long temp; @@ -102,7 +105,7 @@ static inline void arch_local_irq_enable(void) : "n"((STATUS_E1_MASK | STATUS_E2_MASK)) : "cc", "memory"); } - +#endif /* * Unconditionally Disable IRQs |