diff options
author | Paul Mackerras | 2005-11-07 03:18:13 +0100 |
---|---|---|
committer | Paul Mackerras | 2005-11-07 03:18:13 +0100 |
commit | 2249ca9d60d3a8a1f6f223f0f0a0283fcb7ce33e (patch) | |
tree | 33a5c8d6e2363013db1052f474c1225c472e3fcd /include/asm-powerpc | |
parent | [PATCH] powerpc: Kill ppcdebug (diff) | |
download | kernel-qcow2-linux-2249ca9d60d3a8a1f6f223f0f0a0283fcb7ce33e.tar.gz kernel-qcow2-linux-2249ca9d60d3a8a1f6f223f0f0a0283fcb7ce33e.tar.xz kernel-qcow2-linux-2249ca9d60d3a8a1f6f223f0f0a0283fcb7ce33e.zip |
powerpc: Various UP build fixes
Mostly this involves adding #include <asm/smp.h>, since that defines
things like boot_cpuid[_phys] and [gs]et_hard_smp_processor_id, which
are SMP-related but still needed on UP. This incorporates fixes
posted by Olof Johansson and Heikki Lindholm.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/smp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-powerpc/smp.h b/include/asm-powerpc/smp.h index 8bcdd0faefea..98581e5a8279 100644 --- a/include/asm-powerpc/smp.h +++ b/include/asm-powerpc/smp.h @@ -86,7 +86,6 @@ extern void __cpu_die(unsigned int cpu); #else /* for UP */ #define smp_setup_cpu_maps() -#define smp_release_cpus() #endif /* CONFIG_SMP */ @@ -94,6 +93,9 @@ extern void __cpu_die(unsigned int cpu); #define get_hard_smp_processor_id(CPU) (paca[(CPU)].hw_cpu_id) #define set_hard_smp_processor_id(CPU, VAL) \ do { (paca[(CPU)].hw_cpu_id = (VAL)); } while (0) + +extern void smp_release_cpus(void); + #else /* 32-bit */ #ifndef CONFIG_SMP |