direct-io.hg

changeset 10821:4ebb9c91c886

[IA64] linux without SMP

Add #ifdef CONFIG_SMP so that linux can compile without SMP.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Wed Jul 26 09:39:38 2006 -0600 (2006-07-26)
parents 86e5d8458c08
children 4e7318b0c1e0
files linux-2.6-xen-sparse/arch/ia64/kernel/irq_ia64.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/ia64/kernel/irq_ia64.c	Wed Jul 26 09:36:36 2006 -0600
     1.2 +++ b/linux-2.6-xen-sparse/arch/ia64/kernel/irq_ia64.c	Wed Jul 26 09:39:38 2006 -0600
     1.3 @@ -258,6 +258,7 @@ static unsigned short late_irq_cnt = 0;
     1.4  static unsigned short saved_irq_cnt = 0;
     1.5  static int xen_slab_ready = 0;
     1.6  
     1.7 +#ifdef CONFIG_SMP
     1.8  /* Dummy stub. Though we may check RESCHEDULE_VECTOR before __do_IRQ,
     1.9   * it ends up to issue several memory accesses upon percpu data and
    1.10   * thus adds unnecessary traffic to other paths.
    1.11 @@ -274,6 +275,7 @@ static struct irqaction resched_irqactio
    1.12  	.flags =	SA_INTERRUPT,
    1.13  	.name =		"RESCHED"
    1.14  };
    1.15 +#endif
    1.16  
    1.17  /*
    1.18   * This is xen version percpu irq registration, which needs bind
    1.19 @@ -486,6 +488,7 @@ ia64_send_ipi (int cpu, int vector, int 
    1.20          if (is_running_on_xen()) {
    1.21  		int irq = -1;
    1.22  
    1.23 +#ifdef CONFIG_SMP
    1.24  		/* TODO: we need to call vcpu_up here */
    1.25  		if (unlikely(vector == ap_wakeup_vector)) {
    1.26  			extern void xen_send_ipi (int cpu, int vec);
    1.27 @@ -493,6 +496,7 @@ ia64_send_ipi (int cpu, int vector, int 
    1.28  			//vcpu_prepare_and_up(cpu);
    1.29  			return;
    1.30  		}
    1.31 +#endif
    1.32  
    1.33  		switch(vector) {
    1.34  		case IA64_IPI_VECTOR: