Skip to content

Commit

Permalink
[SPARC64]: Let irq_install_pre_handler() get called multiple times.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller authored and David S. Miller committed Jun 29, 2006
1 parent 946ea09 commit 24ac26d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/sparc64/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ void irq_install_pre_handler(int virt_irq,
data->pre_handler_arg1 = arg1;
data->pre_handler_arg2 = arg2;

if (desc->chip == &sun4u_irq_ack ||
desc->chip == &sun4v_irq_ack)
return;

desc->chip = (desc->chip == &sun4u_irq ?
&sun4u_irq_ack : &sun4v_irq_ack);
}
Expand Down

0 comments on commit 24ac26d

Please sign in to comment.