Skip to content

Commit 33b59f1

Browse files
committed
ARC: [arcompact] fix bitrot with 2 levels of interrupt
Signed-off-by: Vineet Gupta <[email protected]>
1 parent 00fdec9 commit 33b59f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arch/arc/include/asm/irqflags-compact.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ static inline void arch_local_irq_restore(unsigned long flags)
9090
/*
9191
* Unconditionally Enable IRQs
9292
*/
93+
#ifdef CONFIG_ARC_COMPACT_IRQ_LEVELS
94+
extern void arch_local_irq_enable(void);
95+
#else
9396
static inline void arch_local_irq_enable(void)
9497
{
9598
unsigned long temp;
@@ -102,7 +105,7 @@ static inline void arch_local_irq_enable(void)
102105
: "n"((STATUS_E1_MASK | STATUS_E2_MASK))
103106
: "cc", "memory");
104107
}
105-
108+
#endif
106109

107110
/*
108111
* Unconditionally Disable IRQs

0 commit comments

Comments
 (0)