Skip to content

Commit

Permalink
[POWERPC] Initialise hwirq for legacy irqs
Browse files Browse the repository at this point in the history
Although no one uses the hwirq value for legacy irqs at the moment, we
should really setup the correct value in the irq_map.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Sep 13, 2007
1 parent 6815800 commit 7866291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ __init_refok struct irq_host *irq_alloc_host(struct device_node *of_node,
host->inval_irq = 0;
/* setup us as the host for all legacy interrupts */
for (i = 1; i < NUM_ISA_INTERRUPTS; i++) {
irq_map[i].hwirq = 0;
irq_map[i].hwirq = i;
smp_wmb();
irq_map[i].host = host;
smp_wmb();
Expand Down

0 comments on commit 7866291

Please sign in to comment.