[IA64] Clean up CPE handler registration
authorRuss Anderson <rja@sgi.com>
Fri, 3 Aug 2007 19:32:37 +0000 (14:32 -0500)
committerTony Luck <tony.luck@intel.com>
Mon, 13 Aug 2007 20:22:45 +0000 (13:22 -0700)
commita1287476e86568374ed6aadbb4123d9eff6f7b09
tree744faa378bd099f303c320336e10c20771955282
parent0b0517a475c2fd601d01acb4a585644eda9c9395
[IA64] Clean up CPE handler registration

Use local_vector_to_irq() instead of looping through all NR_IRQS.
This avoids registering the CPE handler on multiple irqs.  Only
register if the irq is valid.  If no valid irq is found, print an
error message and set up polling.

Signed-off-by: Russ Anderson <rja@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/mca.c