ia64/xen-unstable

changeset 7136:1abbb6448b4a

Remove unused debug code.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Sep 29 18:15:49 2005 +0100 (2005-09-29)
parents 399436887a32
children f529cd119470
files linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c	Thu Sep 29 17:39:33 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c	Thu Sep 29 18:15:49 2005 +0100
     1.3 @@ -446,27 +446,6 @@ static void __init smp_callin(void)
     1.4  
     1.5  static int cpucount;
     1.6  
     1.7 -
     1.8 -static irqreturn_t ldebug_interrupt(
     1.9 -	int irq, void *dev_id, struct pt_regs *regs)
    1.10 -{
    1.11 -	return IRQ_HANDLED;
    1.12 -}
    1.13 -
    1.14 -static DEFINE_PER_CPU(int, ldebug_irq);
    1.15 -static char ldebug_name[NR_CPUS][15];
    1.16 -
    1.17 -void ldebug_setup(void)
    1.18 -{
    1.19 -	int cpu = smp_processor_id();
    1.20 -
    1.21 -	per_cpu(ldebug_irq, cpu) = bind_virq_to_irq(VIRQ_DEBUG);
    1.22 -	sprintf(ldebug_name[cpu], "ldebug%d", cpu);
    1.23 -	BUG_ON(request_irq(per_cpu(ldebug_irq, cpu), ldebug_interrupt,
    1.24 -	                   SA_INTERRUPT, ldebug_name[cpu], NULL));
    1.25 -}
    1.26 -
    1.27 -
    1.28  extern void local_setup_timer(void);
    1.29  
    1.30  /*
    1.31 @@ -484,7 +463,6 @@ static void __init start_secondary(void 
    1.32  	while (!cpu_isset(smp_processor_id(), smp_commenced_mask))
    1.33  		rep_nop();
    1.34  	local_setup_timer();
    1.35 -	ldebug_setup();
    1.36  	smp_intr_init();
    1.37  	local_irq_enable();
    1.38  	/*
     2.1 --- a/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c	Thu Sep 29 17:39:33 2005 +0100
     2.2 +++ b/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c	Thu Sep 29 18:15:49 2005 +0100
     2.3 @@ -445,25 +445,6 @@ void __cpuinit smp_callin(void)
     2.4  }
     2.5  
     2.6  #ifdef CONFIG_XEN
     2.7 -static irqreturn_t ldebug_interrupt(
     2.8 -	int irq, void *dev_id, struct pt_regs *regs)
     2.9 -{
    2.10 -	return IRQ_HANDLED;
    2.11 -}
    2.12 -
    2.13 -static DEFINE_PER_CPU(int, ldebug_irq);
    2.14 -static char ldebug_name[NR_CPUS][15];
    2.15 -
    2.16 -void ldebug_setup(void)
    2.17 -{
    2.18 -	int cpu = smp_processor_id();
    2.19 -
    2.20 -	per_cpu(ldebug_irq, cpu) = bind_virq_to_irq(VIRQ_DEBUG);
    2.21 -	sprintf(ldebug_name[cpu], "ldebug%d", cpu);
    2.22 -	BUG_ON(request_irq(per_cpu(ldebug_irq, cpu), ldebug_interrupt,
    2.23 -	                   SA_INTERRUPT, ldebug_name[cpu], NULL));
    2.24 -}
    2.25 -
    2.26  extern void local_setup_timer(void);
    2.27  #endif
    2.28  
    2.29 @@ -498,7 +479,6 @@ void __cpuinit start_secondary(void)
    2.30  	enable_APIC_timer();
    2.31  #else
    2.32  	local_setup_timer();
    2.33 -	ldebug_setup();
    2.34  	smp_intr_init();
    2.35  	local_irq_enable();
    2.36  #endif