lkml.org 
[lkml]   [2007]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] affinity is not defined in non-smp kernels - i386 (v2)
    From
    Date
    Initialize affinity only when building SMP kernels.

    Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
    ---

    --- linux-2.6.21-rc2-dtt/arch/i386/kernel/io_apic.c 2007-03-06 15:20:14.000000000 +0900
    +++ linux-2.6.21-rc2-kdump/arch/i386/kernel/io_apic.c 2007-03-06 15:51:45.000000000 +0900
    @@ -1354,7 +1354,9 @@ static void __init setup_IO_APIC_irqs(vo
    }
    spin_lock_irqsave(&ioapic_lock, flags);
    __ioapic_write_entry(apic, pin, entry);
    +#ifdef CONFIG_SMP
    irq_desc[irq].affinity = TARGET_CPUS;
    +#endif
    spin_unlock_irqrestore(&ioapic_lock, flags);
    }
    }
    @@ -2875,7 +2877,9 @@ int io_apic_set_pci_routing (int ioapic,

    spin_lock_irqsave(&ioapic_lock, flags);
    __ioapic_write_entry(ioapic, pin, entry);
    +#ifdef CONFIG_SMP
    irq_desc[irq].affinity = TARGET_CPUS;
    +#endif
    spin_unlock_irqrestore(&ioapic_lock, flags);

    return 0;

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-02-28 09:49    [W:6.282 / U:0.276 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site