diff options
author | Kyle McMartin <kyle@parisc-linux.org> | 2005-11-17 16:27:44 -0500 |
---|---|---|
committer | Kyle McMartin <kyle@parisc-linux.org> | 2005-11-17 16:27:44 -0500 |
commit | 1d4c452a85503cdb4bca5925cf698b61d3aa43a0 (patch) | |
tree | cd2c786aa4dbab46d4aa394ffdaa8cd52387d894 /include/asm-parisc/smp.h | |
parent | d911aed8adf74e1fae88d082b8474b2175b7f1da (diff) |
[PARISC] Fix uniprocessor build by dummying smp_send_all_nop()
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>
Diffstat (limited to 'include/asm-parisc/smp.h')
-rw-r--r-- | include/asm-parisc/smp.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-parisc/smp.h b/include/asm-parisc/smp.h index a5191950ce00..dbdbd2e9fdf9 100644 --- a/include/asm-parisc/smp.h +++ b/include/asm-parisc/smp.h | |||
@@ -54,7 +54,11 @@ extern unsigned long cpu_present_mask; | |||
54 | 54 | ||
55 | #define raw_smp_processor_id() (current_thread_info()->cpu) | 55 | #define raw_smp_processor_id() (current_thread_info()->cpu) |
56 | 56 | ||
57 | #endif /* CONFIG_SMP */ | 57 | #else /* CONFIG_SMP */ |
58 | |||
59 | static inline void smp_send_all_nop(void) { return; } | ||
60 | |||
61 | #endif | ||
58 | 62 | ||
59 | #define NO_PROC_ID 0xFF /* No processor magic marker */ | 63 | #define NO_PROC_ID 0xFF /* No processor magic marker */ |
60 | #define ANY_PROC_ID 0xFF /* Any processor magic marker */ | 64 | #define ANY_PROC_ID 0xFF /* Any processor magic marker */ |