Skip to content

Commit

Permalink
[MIPS] Fix builds where MSC01E_xxx is undefined.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Chris Dearman authored and Ralf Baechle committed Jun 14, 2007
1 parent ffe9ee4 commit 7b4f4ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/mips/mips-boards/generic/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,14 @@ void __init plat_perf_setup(struct irqaction *irq)
void __init plat_timer_setup(struct irqaction *irq)
{
int hwint = 0;
#ifdef MSC01E_INT_BASE
if (cpu_has_veic) {
set_vi_handler (MSC01E_INT_CPUCTR, mips_timer_dispatch);
mips_cpu_timer_irq = MSC01E_INT_BASE + MSC01E_INT_CPUCTR;
}
else {
else
#endif
{
if (cpu_has_mips_r2)
/*
* Read IntCtl.IPTI to determine the timer interrupt
Expand Down

0 comments on commit 7b4f4ec

Please sign in to comment.