sparc32: handle leon in irq_32.c
PATCH 6/15 sparc32: handle leon in irq_32.c
Signed-off-by Sam Ravnborg <[email protected]>
Cc Daniel Hellstrom <[email protected]>
Cc Konrad Eisele <[email protected]>
--- arch/sparc/kernel/irq_32.c | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-)
arch/sparc/kernel/irq_32.c +12 -10
@@ -241,9 +241,6 @@ int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler)unsigned int cpu_irq;int err; -#if definedCONFIG_SMP && !definedCONFIG_SPARC_LEON -struct tt_entry *trap_table; -#endif err =request_irq (irq, irq_handler,0 ,"floppy" ,NULL );if (err)
@@ -264,13 +261,18 @@ int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler) table[SP_TRAP_IRQ1 +(cpu_irq-1 )].inst_four =SPARC_NOP ; INSTANTIATE(sparc_ttable) -#if definedCONFIG_SMP && !definedCONFIG_SPARC_LEON - trap_table = &trapbase_cpu1; -INSTANTIATE (trap_table) - trap_table = &trapbase_cpu2; -INSTANTIATE (trap_table) - trap_table = &trapbase_cpu3; - INSTANTIATE(trap_table) + +#if definedCONFIG_SMP +if (sparc_cpu_model != sparc_leon) { +struct tt_entry *trap_table; + + trap_table = &trapbase_cpu1; +INSTANTIATE (trap_table) + trap_table = &trapbase_cpu2; +INSTANTIATE (trap_table) + trap_table = &trapbase_cpu3; + INSTANTIATE(trap_table) + }#endif #undef INSTANTIATE/*
Signature · 1 line
1.6.0.6