patch-2.1.88 linux/arch/alpha/kernel/irq.c

Next file: linux/arch/alpha/kernel/t2.c
Previous file: linux/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.87/linux/arch/alpha/kernel/irq.c linux/arch/alpha/kernel/irq.c
@@ -423,6 +423,16 @@
 #endif /* CONFIG_ALPHA_SABLE */
 }
 
+int check_irq(unsigned int irq)
+{
+	struct irqaction **p;
+
+	p = irq_action + irq;
+	if (*p == NULL)
+		return 0;
+	return -EBUSY;
+}
+
 int request_irq(unsigned int irq, 
 		void (*handler)(int, void *, struct pt_regs *),
 		unsigned long irqflags, 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov