Skip to content

Commit

Permalink
Clean up SEAD interrupt initialization.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Maciej W. Rozycki authored and Ralf Baechle committed Oct 29, 2005
1 parent 925ddb0 commit ea7c394
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions arch/mips/mips-boards/sead/sead_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Carsten Langgaard, carstenl@mips.com
* Copyright (C) 2002 MIPS Technologies, Inc. All rights reserved.
* Copyright (C) 2003 Ralf Baechle (ralf@linux-mips.org)
* Copyright (C) 2004 Maciej W. Rozycki
*
* This program is free software; you can distribute it and/or modify it
* under the terms of the GNU General Public License (Version 2) as
Expand All @@ -21,7 +22,9 @@
*/
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h>

#include <asm/irq_cpu.h>
#include <asm/system.h>

#include <asm/mips-boards/seadint.h>

Expand All @@ -39,13 +42,8 @@ asmlinkage void sead_hw1_irqdispatch(struct pt_regs *regs)

void __init arch_init_irq(void)
{
/*
* Mask out all interrupt
*/
clear_c0_status(0x0000ff00);
mips_cpu_irq_init(0);

/* Now safe to set the exception vector. */
set_except_vector(0, mipsIRQ);

mips_cpu_irq_init(0);
}

0 comments on commit ea7c394

Please sign in to comment.