diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-06-20 17:27:10 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-06-20 17:27:10 -0400 |
commit | 3b1d4ed5353af04d6aa20be2701727b9cdb2ac61 (patch) | |
tree | e4a3335c925abd933f1650e1ee4786e6bfad8f35 /arch/mips/mips-boards/sim | |
parent | 7c8545e98468c53809fc06788a3b9a34dff05240 (diff) |
[MIPS] Don't drag a platform specific header into generic arch code.
For some platforms it's definitions may conflict. So that's the one-liner.
The rest is 10 square kilometers of collateral damage fixup this include
used to paper over.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mips-boards/sim')
-rw-r--r-- | arch/mips/mips-boards/sim/sim_int.c | 2 | ||||
-rw-r--r-- | arch/mips/mips-boards/sim/sim_time.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/mips/mips-boards/sim/sim_int.c b/arch/mips/mips-boards/sim/sim_int.c index 15ac0655c1ff..766e0159ee5b 100644 --- a/arch/mips/mips-boards/sim/sim_int.c +++ b/arch/mips/mips-boards/sim/sim_int.c | |||
@@ -77,7 +77,7 @@ asmlinkage void plat_irq_dispatch(void) | |||
77 | irq = irq_ffs(pending); | 77 | irq = irq_ffs(pending); |
78 | 78 | ||
79 | if (irq > 0) | 79 | if (irq > 0) |
80 | do_IRQ(MIPSCPU_INT_BASE + irq); | 80 | do_IRQ(MIPS_CPU_IRQ_BASE + irq); |
81 | else | 81 | else |
82 | spurious_interrupt(); | 82 | spurious_interrupt(); |
83 | } | 83 | } |
diff --git a/arch/mips/mips-boards/sim/sim_time.c b/arch/mips/mips-boards/sim/sim_time.c index d3a21c741514..7224ffe31d36 100644 --- a/arch/mips/mips-boards/sim/sim_time.c +++ b/arch/mips/mips-boards/sim/sim_time.c | |||
@@ -71,8 +71,8 @@ irqreturn_t sim_timer_interrupt(int irq, void *dev_id) | |||
71 | 71 | ||
72 | int vpflags = dvpe(); | 72 | int vpflags = dvpe(); |
73 | write_c0_compare (read_c0_count() - 1); | 73 | write_c0_compare (read_c0_count() - 1); |
74 | clear_c0_cause(0x100 << MIPSCPU_INT_CPUCTR); | 74 | clear_c0_cause(0x100 << cp0_compare_irq); |
75 | set_c0_status(0x100 << MIPSCPU_INT_CPUCTR); | 75 | set_c0_status(0x100 << cp0_compare_irq); |
76 | irq_enable_hazard(); | 76 | irq_enable_hazard(); |
77 | evpe(vpflags); | 77 | evpe(vpflags); |
78 | 78 | ||
@@ -183,8 +183,8 @@ void __init plat_timer_setup(struct irqaction *irq) | |||
183 | } | 183 | } |
184 | else { | 184 | else { |
185 | if (cpu_has_vint) | 185 | if (cpu_has_vint) |
186 | set_vi_handler(MIPSCPU_INT_CPUCTR, mips_timer_dispatch); | 186 | set_vi_handler(cp0_compare_irq, mips_timer_dispatch); |
187 | mips_cpu_timer_irq = MIPSCPU_INT_BASE + MIPSCPU_INT_CPUCTR; | 187 | mips_cpu_timer_irq = MIPS_CPU_IRQ_BASE + cp0_compare_irq; |
188 | } | 188 | } |
189 | 189 | ||
190 | /* we are using the cpu counter for timer interrupts */ | 190 | /* we are using the cpu counter for timer interrupts */ |