[MIPS] Define MIPS_CPU_IRQ_BASE in generic header
commit805bc1afe9736004dd57d31de75094fd8f0fd491
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sun, 7 Jan 2007 17:14:29 +0000 (8 02:14 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 4 Feb 2007 20:37:11 +0000 (4 20:37 +0000)
treeb61b91d0365ac9dea104ea1fdd7aadc62227283c
parent6fc286418b04f9d2031d93b3b7dadff63659ac3c
[MIPS] Define MIPS_CPU_IRQ_BASE in generic header

The irq_base for {mips,rm7k,rm9k}_cpu_irq_init() are constant on all
platforms and are same value on most platforms (0 or 16, depends on
CONFIG_I8259).  Define them in asm-mips/mach-generic/irq.h and make
them customizable.  This will save a few cycle on each CPU interrupt.

A good side effect is removing some dependencies to MALTA in generic
SMTC code.

Although MIPS_CPU_IRQ_BASE is customizable, this patch changes irq
mappings on DDB5477, EMMA2RH and MIPS_SIM, since really customizing
them might cause some header dependency problem and there seems no
good reason to customize it.  So currently only VR41XX is using custom
MIPS_CPU_IRQ_BASE value, which is 0 regardless of CONFIG_I8259.

Testing this patch on those platforms is greatly appreciated.  Thank
you.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
40 files changed:
arch/mips/basler/excite/excite_irq.c
arch/mips/cobalt/irq.c
arch/mips/ddb5xxx/ddb5477/irq.c
arch/mips/dec/setup.c
arch/mips/emma2rh/markeins/irq.c
arch/mips/gt64120/momenco_ocelot/irq.c
arch/mips/gt64120/wrppmc/irq.c
arch/mips/kernel/irq-rm7000.c
arch/mips/kernel/irq-rm9000.c
arch/mips/kernel/irq_cpu.c
arch/mips/kernel/rtlx.c
arch/mips/kernel/smp-mt.c
arch/mips/kernel/smtc.c
arch/mips/mips-boards/atlas/atlas_int.c
arch/mips/mips-boards/malta/malta_int.c
arch/mips/mips-boards/sead/sead_int.c
arch/mips/mips-boards/sim/sim_int.c
arch/mips/momentum/jaguar_atx/irq.c
arch/mips/momentum/ocelot_3/irq.c
arch/mips/momentum/ocelot_c/irq.c
arch/mips/momentum/ocelot_g/irq.c
arch/mips/pmc-sierra/yosemite/irq.c
arch/mips/sgi-ip22/ip22-int.c
arch/mips/vr41xx/common/irq.c
include/asm-mips/ddb5xxx/ddb5477.h
include/asm-mips/dec/interrupts.h
include/asm-mips/emma2rh/emma2rh.h
include/asm-mips/emma2rh/markeins.h
include/asm-mips/irq_cpu.h
include/asm-mips/mach-cobalt/cobalt.h
include/asm-mips/mach-emma2rh/irq.h
include/asm-mips/mach-generic/irq.h
include/asm-mips/mach-mips/irq.h
include/asm-mips/mach-vr41xx/irq.h [new file with mode: 0644]
include/asm-mips/mips-boards/atlasint.h
include/asm-mips/mips-boards/maltaint.h
include/asm-mips/mips-boards/seadint.h
include/asm-mips/mips-boards/simint.h
include/asm-mips/rtlx.h
include/asm-mips/sgi/ip22.h