Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Loongson64: Adjust IRQ layout

Adjust IRQ layout in order to use IRQ resources more efficiently, which
is done by adjusting NR_IRQS and MIPS_CPU_IRQ_BASE.

Before this patch:
0~15: ISA/LPC IRQs;
16~55: Dynamic IRQs;
56~63: MIPS CPU IRQs;
64~127: PCH IRQs;
128~255: Dynamic IRQs.

After this patch:
0~15: ISA/LPC IRQs;
16~23: MIPS CPU IRQs;
24~87: PCH IRQs;
88~280: Dynamic IRQs.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Huacai Chen and committed by
Thomas Bogendoerfer
925a5675 04ef32af

+5 -1
+5 -1
arch/mips/include/asm/mach-loongson64/irq.h
··· 5 5 #include <boot_param.h> 6 6 7 7 /* cpu core interrupt numbers */ 8 - #define MIPS_CPU_IRQ_BASE 56 8 + #define NR_IRQS_LEGACY 16 9 + #define NR_MIPS_CPU_IRQS 8 10 + #define NR_IRQS (NR_IRQS_LEGACY + NR_MIPS_CPU_IRQS + 256) 11 + 12 + #define MIPS_CPU_IRQ_BASE NR_IRQS_LEGACY 9 13 10 14 #include <asm/mach-generic/irq.h> 11 15