Skip to content

Commit

Permalink
[PARISC] Fix uniprocessor build by dummying smp_send_all_nop()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kyle McMartin committed Nov 17, 2005
1 parent d911aed commit 1d4c452
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/parisc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down
6 changes: 5 additions & 1 deletion include/asm-parisc/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 1d4c452

Please sign in to comment.