]> xenbits.xensource.com Git - xen.git/commitdiff
[IA64] Remove xenirq.c.
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Tue, 11 Apr 2006 19:55:40 +0000 (13:55 -0600)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Tue, 11 Apr 2006 19:55:40 +0000 (13:55 -0600)
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/ia64/xen/irq.c
xen/arch/ia64/xen/xenirq.c [deleted file]

index 21282edb31debfd33ed09bb1e0ef0b63a0d49ddb..b049667602533b12fa0d5783a021df3de6537770 100644 (file)
@@ -544,6 +544,47 @@ int pirq_guest_unbind(struct domain *d, int irq)
     return 0;
 }
 
+void
+xen_debug_irq(unsigned long vector, struct pt_regs *regs)
+{
+//FIXME: For debug only, can be removed
+       static char firstirq = 1;
+       static char firsttime[256];
+       static char firstpend[256];
+       if (firstirq) {
+               int i;
+               for (i=0;i<256;i++) firsttime[i] = 1;
+               for (i=0;i<256;i++) firstpend[i] = 1;
+               firstirq = 0;
+       }
+       if (firsttime[vector]) {
+               printf("**** (entry) First received int on vector=%lu,itc=%lx\n",
+                       (unsigned long) vector, ia64_get_itc());
+               firsttime[vector] = 0;
+       }
+}
+
+/*
+ * Exit an interrupt context. Process softirqs if needed and possible:
+ */
+void irq_exit(void)
+{
+       sub_preempt_count(IRQ_EXIT_OFFSET);
+}
+
+/*
+ * ONLY gets called from ia64_leave_kernel
+ * ONLY call with interrupts enabled
+ */
+void process_soft_irq(void)
+{
+       if (!in_interrupt() && local_softirq_pending()) {
+               add_preempt_count(SOFTIRQ_OFFSET);
+               do_softirq();
+               sub_preempt_count(SOFTIRQ_OFFSET);
+       }
+}
+
 // this is a temporary hack until real console input is implemented
 extern void domain_pend_keyboard_interrupt(int irq);
 irqreturn_t guest_forward_keyboard_input(int irq, void *nada, struct pt_regs *regs)
diff --git a/xen/arch/ia64/xen/xenirq.c b/xen/arch/ia64/xen/xenirq.c
deleted file mode 100644 (file)
index 441bbf1..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Xen irq routines
- *
- * Copyright (C) 2005 Hewlett-Packard Co.
- *     Dan Magenheimer (dan.magenheimer@hp.com)
- *
- */
-
-#include <asm/ptrace.h>
-#include <asm/hw_irq.h>
-#include <asm/delay.h>
-
-void
-xen_debug_irq(ia64_vector vector, struct pt_regs *regs)
-{
-//FIXME: For debug only, can be removed
-       static char firstirq = 1;
-       static char firsttime[256];
-       static char firstpend[256];
-       if (firstirq) {
-               int i;
-               for (i=0;i<256;i++) firsttime[i] = 1;
-               for (i=0;i<256;i++) firstpend[i] = 1;
-               firstirq = 0;
-       }
-       if (firsttime[vector]) {
-               printf("**** (entry) First received int on vector=%lu,itc=%lx\n",
-                       (unsigned long) vector, ia64_get_itc());
-               firsttime[vector] = 0;
-       }
-}
-
-/*
- * Exit an interrupt context. Process softirqs if needed and possible:
- */
-void irq_exit(void)
-{
-       sub_preempt_count(IRQ_EXIT_OFFSET);
-}
-
-/*
- * ONLY gets called from ia64_leave_kernel
- * ONLY call with interrupts enabled
- */
-void process_soft_irq(void)
-{
-       if (!in_interrupt() && local_softirq_pending()) {
-               add_preempt_count(SOFTIRQ_OFFSET);
-               do_softirq();
-               sub_preempt_count(SOFTIRQ_OFFSET);
-       }
-}
-
-/* end from linux/kernel/softirq.c */