diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-05-25 17:20:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-28 02:52:44 -0400 |
commit | b08b5c9c9b35c938e8a94d9232e05a7f69a1dba5 (patch) | |
tree | 8b2cf57dffad7549831c10be683de98a777e110a /arch | |
parent | 5b8b93c4ab17a250a35e6db1cce094bf599a21c6 (diff) |
sparc32: handle leon in irq_32.c
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Cc: Konrad Eisele <konrad@gaisler.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/kernel/irq_32.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/arch/sparc/kernel/irq_32.c b/arch/sparc/kernel/irq_32.c index ae04914f7774..c145f6fd123b 100644 --- a/arch/sparc/kernel/irq_32.c +++ b/arch/sparc/kernel/irq_32.c | |||
@@ -241,9 +241,6 @@ int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler) | |||
241 | unsigned int cpu_irq; | 241 | unsigned int cpu_irq; |
242 | int err; | 242 | int err; |
243 | 243 | ||
244 | #if defined CONFIG_SMP && !defined CONFIG_SPARC_LEON | ||
245 | struct tt_entry *trap_table; | ||
246 | #endif | ||
247 | 244 | ||
248 | err = request_irq(irq, irq_handler, 0, "floppy", NULL); | 245 | err = request_irq(irq, irq_handler, 0, "floppy", NULL); |
249 | if (err) | 246 | if (err) |
@@ -264,13 +261,18 @@ int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler) | |||
264 | table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_four = SPARC_NOP; | 261 | table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_four = SPARC_NOP; |
265 | 262 | ||
266 | INSTANTIATE(sparc_ttable) | 263 | INSTANTIATE(sparc_ttable) |
267 | #if defined CONFIG_SMP && !defined CONFIG_SPARC_LEON | 264 | |
268 | trap_table = &trapbase_cpu1; | 265 | #if defined CONFIG_SMP |
269 | INSTANTIATE(trap_table) | 266 | if (sparc_cpu_model != sparc_leon) { |
270 | trap_table = &trapbase_cpu2; | 267 | struct tt_entry *trap_table; |
271 | INSTANTIATE(trap_table) | 268 | |
272 | trap_table = &trapbase_cpu3; | 269 | trap_table = &trapbase_cpu1; |
273 | INSTANTIATE(trap_table) | 270 | INSTANTIATE(trap_table) |
271 | trap_table = &trapbase_cpu2; | ||
272 | INSTANTIATE(trap_table) | ||
273 | trap_table = &trapbase_cpu3; | ||
274 | INSTANTIATE(trap_table) | ||
275 | } | ||
274 | #endif | 276 | #endif |
275 | #undef INSTANTIATE | 277 | #undef INSTANTIATE |
276 | /* | 278 | /* |