patch-2.2.8 linux/include/asm-arm/arch-arc/irq.h

Next file: linux/include/asm-arm/arch-arc/keyboard.h
Previous file: linux/include/asm-arm/arch-arc/hardware.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.7/linux/include/asm-arm/arch-arc/irq.h linux/include/asm-arm/arch-arc/irq.h
@@ -10,6 +10,9 @@
  *   11-01-1998	RMK	Added mask_and_ack_irq
  *   22-08-1998	RMK	Restructured IRQ routines
  */
+#include <asm/ioc.h>
+
+#define fixup_irq(x) (x)
 
 static void arc_mask_irq_ack_a(unsigned int irq)
 {
@@ -108,10 +111,17 @@
 	outb(0, IOC_FIQMASK);
 
 	for (irq = 0; irq < NR_IRQS; irq++) {
-		switch (irq & 0xf8) {
+		switch (irq) {
 		case 0 ... 6:
 			irq_desc[irq].probe_ok = 1;
+			irq_desc[irq].valid    = 1;
+			irq_desc[irq].mask_ack = arc_mask_irq_ack_a;
+			irq_desc[irq].mask     = arc_mask_irq_a;
+			irq_desc[irq].unmask   = arc_unmask_irq_a;
+			break;
+
 		case 7:
+			irq_desc[irq].noautoenable = 1;
 			irq_desc[irq].valid    = 1;
 			irq_desc[irq].mask_ack = arc_mask_irq_ack_a;
 			irq_desc[irq].mask     = arc_mask_irq_a;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)