[PATCH] x86_64/i386 irq: Fix !CONFIG_SMP compilation

When removing set_native_irq I missed the fact that it was
called in a couple of places that were compiled even when
SMP support is disabled. And since the irq_desc[].affinity
field only exists in SMP things broke.

Thanks to Simon Arlott <simon@arlott.org> for spotting this.

There are a couple of ways to fix this but the simplest one
is to just remove the assignments. The affinity field is only
used to display a value to the user, and nothing on either i386
or x86_64 reads it or depends on it being any particlua value,
so skipping the assignment is safe. The assignment that
is being removed is just for the initial affinity value before
the user explicitly sets it. The irq_desc array initializes
this field to CPU_MASK_ALL so the field is initialized to
a reasonable value in the SMP case without being set.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Eric W. Biederman and committed by Linus Torvalds 2ff7354f 606135a3

-6
-2
arch/i386/kernel/io_apic.c
··· 1354 1354 } 1355 1355 spin_lock_irqsave(&ioapic_lock, flags); 1356 1356 __ioapic_write_entry(apic, pin, entry); 1357 - irq_desc[irq].affinity = TARGET_CPUS; 1358 1357 spin_unlock_irqrestore(&ioapic_lock, flags); 1359 1358 } 1360 1359 } ··· 2874 2875 2875 2876 spin_lock_irqsave(&ioapic_lock, flags); 2876 2877 __ioapic_write_entry(ioapic, pin, entry); 2877 - irq_desc[irq].affinity = TARGET_CPUS; 2878 2878 spin_unlock_irqrestore(&ioapic_lock, flags); 2879 2879 2880 2880 return 0;
-4
arch/x86_64/kernel/io_apic.c
··· 830 830 disable_8259A_irq(irq); 831 831 832 832 ioapic_write_entry(apic, pin, entry); 833 - 834 - spin_lock_irqsave(&ioapic_lock, flags); 835 - irq_desc[irq].affinity = TARGET_CPUS; 836 - spin_unlock_irqrestore(&ioapic_lock, flags); 837 833 } 838 834 839 835 static void __init setup_IO_APIC_irqs(void)