diff options
Diffstat (limited to 'arch/mips/sgi-ip22/ip22-int.c')
-rw-r--r-- | arch/mips/sgi-ip22/ip22-int.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/arch/mips/sgi-ip22/ip22-int.c b/arch/mips/sgi-ip22/ip22-int.c index f6d9bf4b26e7..f8b18af141a1 100644 --- a/arch/mips/sgi-ip22/ip22-int.c +++ b/arch/mips/sgi-ip22/ip22-int.c | |||
@@ -12,20 +12,11 @@ | |||
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/kernel_stat.h> | 14 | #include <linux/kernel_stat.h> |
15 | #include <linux/signal.h> | ||
16 | #include <linux/sched.h> | ||
17 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
18 | #include <linux/irq.h> | ||
19 | 16 | ||
20 | #include <asm/mipsregs.h> | ||
21 | #include <asm/addrspace.h> | ||
22 | #include <asm/irq_cpu.h> | 17 | #include <asm/irq_cpu.h> |
23 | #include <asm/sgi/ioc.h> | ||
24 | #include <asm/sgi/hpc3.h> | 18 | #include <asm/sgi/hpc3.h> |
25 | #include <asm/sgi/ip22.h> | 19 | #include <asm/sgi/ip22.h> |
26 | #include <asm/time.h> | ||
27 | |||
28 | /* #define DEBUG_SGINT */ | ||
29 | 20 | ||
30 | /* So far nothing hangs here */ | 21 | /* So far nothing hangs here */ |
31 | #undef USE_LIO3_IRQ | 22 | #undef USE_LIO3_IRQ |
@@ -68,7 +59,7 @@ static void enable_local1_irq(unsigned int irq) | |||
68 | sgint->imask1 |= (1 << (irq - SGINT_LOCAL1)); | 59 | sgint->imask1 |= (1 << (irq - SGINT_LOCAL1)); |
69 | } | 60 | } |
70 | 61 | ||
71 | void disable_local1_irq(unsigned int irq) | 62 | static void disable_local1_irq(unsigned int irq) |
72 | { | 63 | { |
73 | sgint->imask1 &= ~(1 << (irq - SGINT_LOCAL1)); | 64 | sgint->imask1 &= ~(1 << (irq - SGINT_LOCAL1)); |
74 | } | 65 | } |
@@ -87,7 +78,7 @@ static void enable_local2_irq(unsigned int irq) | |||
87 | sgint->cmeimask0 |= (1 << (irq - SGINT_LOCAL2)); | 78 | sgint->cmeimask0 |= (1 << (irq - SGINT_LOCAL2)); |
88 | } | 79 | } |
89 | 80 | ||
90 | void disable_local2_irq(unsigned int irq) | 81 | static void disable_local2_irq(unsigned int irq) |
91 | { | 82 | { |
92 | sgint->cmeimask0 &= ~(1 << (irq - SGINT_LOCAL2)); | 83 | sgint->cmeimask0 &= ~(1 << (irq - SGINT_LOCAL2)); |
93 | if (!sgint->cmeimask0) | 84 | if (!sgint->cmeimask0) |
@@ -108,7 +99,7 @@ static void enable_local3_irq(unsigned int irq) | |||
108 | sgint->cmeimask1 |= (1 << (irq - SGINT_LOCAL3)); | 99 | sgint->cmeimask1 |= (1 << (irq - SGINT_LOCAL3)); |
109 | } | 100 | } |
110 | 101 | ||
111 | void disable_local3_irq(unsigned int irq) | 102 | static void disable_local3_irq(unsigned int irq) |
112 | { | 103 | { |
113 | sgint->cmeimask1 &= ~(1 << (irq - SGINT_LOCAL3)); | 104 | sgint->cmeimask1 &= ~(1 << (irq - SGINT_LOCAL3)); |
114 | if (!sgint->cmeimask1) | 105 | if (!sgint->cmeimask1) |
@@ -344,6 +335,6 @@ void __init arch_init_irq(void) | |||
344 | 335 | ||
345 | #ifdef CONFIG_EISA | 336 | #ifdef CONFIG_EISA |
346 | if (ip22_is_fullhouse()) /* Only Indigo-2 has EISA stuff */ | 337 | if (ip22_is_fullhouse()) /* Only Indigo-2 has EISA stuff */ |
347 | ip22_eisa_init(); | 338 | ip22_eisa_init(); |
348 | #endif | 339 | #endif |
349 | } | 340 | } |