diff options
-rw-r--r-- | arch/tile/kernel/irq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/tile/kernel/irq.c b/arch/tile/kernel/irq.c index c90de6c..0e6c521 100644 --- a/arch/tile/kernel/irq.c +++ b/arch/tile/kernel/irq.c @@ -55,7 +55,8 @@ static DEFINE_PER_CPU(int, irq_depth); /* State for allocating IRQs on Gx. */ #if CHIP_HAS_IPI() -static unsigned long available_irqs = ~(1UL << IRQ_RESCHEDULE); +static unsigned long available_irqs = ((1UL << NR_IRQS) - 1) & + (~(1UL << IRQ_RESCHEDULE)); static DEFINE_SPINLOCK(available_irqs_lock); #endif |