aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/sn/kernel
diff options
context:
space:
mode:
authorRuss Anderson <rja@sgi.com>2007-10-31 12:10:38 -0400
committerTony Luck <tony.luck@intel.com>2007-11-06 18:40:31 -0500
commit1f3b6045f783ee394076ad6dba2d72ecaaecd243 (patch)
treec20820794846f45db619991d0ddc26832ccf75e8 /arch/ia64/sn/kernel
parentadb34022eb7a11126fecef6b5abb4741a17360c6 (diff)
[IA64] Disable/re-enable CPE interrupts on Altix
When the CPE handler encounters too many CPEs (such as a solid single bit memory error), it sets up a polling timer and disables the CPE interrupt (to avoid excessive overhead logging the stream of single bit errors). disable_irq_nosync() calls chip->disable() to provide a chipset specifiec interface for disabling the interrupt. This patch adds the Altix specific support to disable and re-enable the CPE interrupt. Signed-off-by: Russ Anderson (rja@sgi.com) Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/sn/kernel')
-rw-r--r--arch/ia64/sn/kernel/irq.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/ia64/sn/kernel/irq.c b/arch/ia64/sn/kernel/irq.c
index 0f9b12683bf3..53351c3cd7b1 100644
--- a/arch/ia64/sn/kernel/irq.c
+++ b/arch/ia64/sn/kernel/irq.c
@@ -5,7 +5,7 @@
5 * License. See the file "COPYING" in the main directory of this archive 5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details. 6 * for more details.
7 * 7 *
8 * Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved. 8 * Copyright (c) 2000-2007 Silicon Graphics, Inc. All Rights Reserved.
9 */ 9 */
10 10
11#include <linux/irq.h> 11#include <linux/irq.h>
@@ -85,12 +85,18 @@ static void sn_shutdown_irq(unsigned int irq)
85{ 85{
86} 86}
87 87
88extern void ia64_mca_register_cpev(int);
89
88static void sn_disable_irq(unsigned int irq) 90static void sn_disable_irq(unsigned int irq)
89{ 91{
92 if (irq == local_vector_to_irq(IA64_CPE_VECTOR))
93 ia64_mca_register_cpev(0);
90} 94}
91 95
92static void sn_enable_irq(unsigned int irq) 96static void sn_enable_irq(unsigned int irq)
93{ 97{
98 if (irq == local_vector_to_irq(IA64_CPE_VECTOR))
99 ia64_mca_register_cpev(irq);
94} 100}
95 101
96static void sn_ack_irq(unsigned int irq) 102static void sn_ack_irq(unsigned int irq)