Skip to contentSkip to conversation

fix up UP in 2.5-bkcurrent

PATCH In review Tomas Szepe 2 participants 2 messages Dec 31, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix up UP in 2.5-bkcurrent

Linus,

The following bit is needed to build (and boot) current 2.5 bk on UP. The fix just favors a "we may have to do this" comment. <g>

Signature · 18 lines
Tomas Szepe <[email protected]>


diff -urN a/include/asm-i386/hw_irq.h b/include/asm-i386/hw_irq.h
--- a/include/asm-i386/hw_irq.h	2002-12-31 09:33:21.000000000 +0100
+++ b/include/asm-i386/hw_irq.h	2002-12-31 09:26:18.000000000 +0100
@@ -131,8 +131,9 @@
 
 #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));
 }
#1 lore raw
Quoted 3 lines · Tomas Szepe

The following bit is needed to build (and boot) current 2.5 bk on UP. The fix just favors a "we may have to do this" comment. <g>

Damn, I even tested that on UP, but I tested it on UP-without-APIC, so I didn't see any problems. Thanks,

Linus