[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Remove unused debug code.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 1abbb6448b4a39c6a1a4d46c2d9a4389fdbe0b98
# Parent  399436887a32047613c28c93e51103c257c7a808
Remove unused debug code.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 399436887a32 -r 1abbb6448b4a 
linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c
--- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c       Thu Sep 29 
16:39:33 2005
+++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c       Thu Sep 29 
17:15:49 2005
@@ -446,27 +446,6 @@
 
 static int cpucount;
 
-
-static irqreturn_t ldebug_interrupt(
-       int irq, void *dev_id, struct pt_regs *regs)
-{
-       return IRQ_HANDLED;
-}
-
-static DEFINE_PER_CPU(int, ldebug_irq);
-static char ldebug_name[NR_CPUS][15];
-
-void ldebug_setup(void)
-{
-       int cpu = smp_processor_id();
-
-       per_cpu(ldebug_irq, cpu) = bind_virq_to_irq(VIRQ_DEBUG);
-       sprintf(ldebug_name[cpu], "ldebug%d", cpu);
-       BUG_ON(request_irq(per_cpu(ldebug_irq, cpu), ldebug_interrupt,
-                          SA_INTERRUPT, ldebug_name[cpu], NULL));
-}
-
-
 extern void local_setup_timer(void);
 
 /*
@@ -484,7 +463,6 @@
        while (!cpu_isset(smp_processor_id(), smp_commenced_mask))
                rep_nop();
        local_setup_timer();
-       ldebug_setup();
        smp_intr_init();
        local_irq_enable();
        /*
diff -r 399436887a32 -r 1abbb6448b4a 
linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c
--- a/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c     Thu Sep 29 
16:39:33 2005
+++ b/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c     Thu Sep 29 
17:15:49 2005
@@ -445,25 +445,6 @@
 }
 
 #ifdef CONFIG_XEN
-static irqreturn_t ldebug_interrupt(
-       int irq, void *dev_id, struct pt_regs *regs)
-{
-       return IRQ_HANDLED;
-}
-
-static DEFINE_PER_CPU(int, ldebug_irq);
-static char ldebug_name[NR_CPUS][15];
-
-void ldebug_setup(void)
-{
-       int cpu = smp_processor_id();
-
-       per_cpu(ldebug_irq, cpu) = bind_virq_to_irq(VIRQ_DEBUG);
-       sprintf(ldebug_name[cpu], "ldebug%d", cpu);
-       BUG_ON(request_irq(per_cpu(ldebug_irq, cpu), ldebug_interrupt,
-                          SA_INTERRUPT, ldebug_name[cpu], NULL));
-}
-
 extern void local_setup_timer(void);
 #endif
 
@@ -498,7 +479,6 @@
        enable_APIC_timer();
 #else
        local_setup_timer();
-       ldebug_setup();
        smp_intr_init();
        local_irq_enable();
 #endif

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.