patch-2.4.20 linux-2.4.20/arch/ia64/kernel/irq_ia64.c
Next file: linux-2.4.20/arch/ia64/kernel/ivt.S
Previous file: linux-2.4.20/arch/ia64/kernel/irq.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Thu Nov 28 15:53:09 2002
- Orig file:
linux-2.4.19/arch/ia64/kernel/irq_ia64.c
- Orig date:
Fri Nov 9 14:26:17 2001
diff -urN linux-2.4.19/arch/ia64/kernel/irq_ia64.c linux-2.4.20/arch/ia64/kernel/irq_ia64.c
@@ -36,6 +36,10 @@
#include <asm/pgtable.h>
#include <asm/system.h>
+#ifdef CONFIG_PERFMON
+# include <asm/perfmon.h>
+#endif
+
#define IRQ_DEBUG 0
/* default base addr of IPI table */
@@ -51,14 +55,14 @@
};
int
-ia64_alloc_irq (void)
+ia64_alloc_vector (void)
{
- static int next_irq = IA64_FIRST_DEVICE_VECTOR;
+ static int next_vector = IA64_FIRST_DEVICE_VECTOR;
- if (next_irq > IA64_LAST_DEVICE_VECTOR)
+ if (next_vector > IA64_LAST_DEVICE_VECTOR)
/* XXX could look for sharable vectors instead of panic'ing... */
- panic("ia64_alloc_irq: out of interrupt vectors!");
- return next_irq++;
+ panic("%s: out of interrupt vectors!", __FUNCTION__);
+ return next_vector++;
}
extern unsigned int do_IRQ(unsigned long irq, struct pt_regs *regs);
@@ -173,6 +177,9 @@
#ifdef CONFIG_SMP
register_percpu_irq(IA64_IPI_VECTOR, &ipi_irqaction);
#endif
+#ifdef CONFIG_PERFMON
+ perfmon_init_percpu();
+#endif
platform_irq_init();
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)