]> err.no Git - linux-2.6/commitdiff
[PARISC] Fix uniprocessor build by dummying smp_send_all_nop()
authorKyle McMartin <kyle@parisc-linux.org>
Thu, 17 Nov 2005 21:27:44 +0000 (16:27 -0500)
committerKyle McMartin <kyle@parisc-linux.org>
Thu, 17 Nov 2005 21:27:44 +0000 (16:27 -0500)
Since irq.c uses smp_send_all_nop, we must define it for UP builds
as well. Make it a static inline so it gets optimized away. This forces
irq.c to include <asm/smp.h> though.

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
arch/parisc/kernel/irq.c
include/asm-parisc/smp.h

index 3998c0cb925b6f7bb95bd481fe857dd18f2de685..865611c15531a65a7d17200b1609d7e0fcd7d971 100644 (file)
@@ -31,6 +31,8 @@
 #include <linux/spinlock.h>
 #include <linux/types.h>
 
+#include <asm/smp.h>
+
 #undef PARISC_IRQ_CR16_COUNTS
 
 extern irqreturn_t timer_interrupt(int, void *, struct pt_regs *);
index a5191950ce007c5aeb9b8755470dbb6a84b41517..dbdbd2e9fdf9304e658a6ea61a56cdf8c6688e67 100644 (file)
@@ -54,7 +54,11 @@ extern unsigned long cpu_present_mask;
 
 #define raw_smp_processor_id() (current_thread_info()->cpu)
 
-#endif /* CONFIG_SMP */
+#else /* CONFIG_SMP */
+
+static inline void smp_send_all_nop(void) { return; }
+
+#endif
 
 #define NO_PROC_ID             0xFF            /* No processor magic marker */
 #define ANY_PROC_ID            0xFF            /* Any processor magic marker */