]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix up UP-APIC compile
authorTomas Szepe <szepe@pinerecords.com>
Tue, 31 Dec 2002 02:59:00 +0000 (18:59 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 31 Dec 2002 02:59:00 +0000 (18:59 -0800)
include/asm-i386/hw_irq.h

index 70011938c2295a0450723e2e9d7a5d2eaeda42ac..a537cc4d233ed8dacfdc12460ba4ef2af8a73084 100644 (file)
@@ -131,8 +131,9 @@ static inline int unregister_profile_notifier(struct notifier_block * nb)
 
 #endif /* CONFIG_PROFILING */
  
-#ifdef CONFIG_X86_IO_APIC /*more of this file should probably be ifdefed SMP */
-static inline void hw_resend_irq(struct hw_interrupt_type *h, unsigned int i) {
+#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_SMP)
+static inline void hw_resend_irq(struct hw_interrupt_type *h, unsigned int i)
+{
        if (IO_APIC_IRQ(i))
                send_IPI_self(IO_APIC_VECTOR(i));
 }