MIPS: IRQ/IP27: Move IRQ allocation API to platform code.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 9 Jun 2015 13:04:38 +0000 (15:04 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 21 Jun 2015 19:54:31 +0000 (21:54 +0200)
allocate_irqno, free_irqno and alloc_legacy_irqno are a simple allocator
for interrupt numbers from the days when the numer of interrupts was still
fixed to NR_IRQS.  This was necessary for the SGI IP27 architecture which
with its flexible architecture and possibly large number of interrupts
doesn't easily fit into the old pattern.  These days there are better
alternatives.

Move the allocation code from the arch generic code to the only platform
using it, the SGI IP27 aka Origin 200/2000, Onyx 2.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/irq.c
arch/mips/sgi-ip27/Makefile
arch/mips/sgi-ip27/ip27-irqno.c [new file with mode: 0644]

Simple merge
Simple merge
Simple merge