Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309527
b: refs/heads/master
c: b08b5c9
h: refs/heads/master
i:
  309525: 34fb1b4
  309523: cf7e856
  309519: 9ac25dc
v: v3
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed May 28, 2012
1 parent b8dd56a commit 477769b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b8b93c4ab17a250a35e6db1cce094bf599a21c6
refs/heads/master: b08b5c9c9b35c938e8a94d9232e05a7f69a1dba5
22 changes: 12 additions & 10 deletions trunk/arch/sparc/kernel/irq_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,6 @@ int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler)
unsigned int cpu_irq;
int err;

#if defined CONFIG_SMP && !defined CONFIG_SPARC_LEON
struct tt_entry *trap_table;
#endif

err = request_irq(irq, irq_handler, 0, "floppy", NULL);
if (err)
Expand All @@ -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 defined CONFIG_SMP && !defined CONFIG_SPARC_LEON
trap_table = &trapbase_cpu1;
INSTANTIATE(trap_table)
trap_table = &trapbase_cpu2;
INSTANTIATE(trap_table)
trap_table = &trapbase_cpu3;
INSTANTIATE(trap_table)

#if defined CONFIG_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
/*
Expand Down

0 comments on commit 477769b

Please sign in to comment.