[MIPS] Define MIPS_CPU_IRQ_BASE in generic header
commit97dcb82de6cc99a5669eb8e342efc24cceb1e77e
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>
Tue, 6 Feb 2007 16:53:08 +0000 (6 16:53 +0000)
treee195fd57deda8d38652c746c04a7c374cdf951a0
parentb6ec8f069bf202d2bd888aa9137b2cc3aad4c573
[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