diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-27 14:42:04 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-27 14:42:04 +0200 |
commit | 80579e1f4a6b5f5dec92faa6c3e0645961c99091 (patch) | |
tree | d8fd5e184b54145811a92914c806544ad745087a /include/asm-ppc/smp.h | |
parent | powerpc: remove duplicate screen_info from setup_32.c (diff) | |
download | linux-80579e1f4a6b5f5dec92faa6c3e0645961c99091.tar.xz linux-80579e1f4a6b5f5dec92faa6c3e0645961c99091.zip |
powerpc: 32-bit CHRP SMP fixes
Untested, but "should" work... at least this way it compiles.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc/smp.h')
-rw-r--r-- | include/asm-ppc/smp.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/asm-ppc/smp.h b/include/asm-ppc/smp.h index 063d7dedc691..30e9268a888c 100644 --- a/include/asm-ppc/smp.h +++ b/include/asm-ppc/smp.h @@ -53,16 +53,24 @@ extern int __cpu_up(unsigned int cpu); extern int smp_hw_index[]; #define hard_smp_processor_id() (smp_hw_index[smp_processor_id()]) #define get_hard_smp_processor_id(cpu) (smp_hw_index[(cpu)]) - +#define set_hard_smp_processor_id(cpu, phys)\ + (smp_hw_index[(cpu)] = (phys)) + #endif /* __ASSEMBLY__ */ #else /* !(CONFIG_SMP) */ static inline void cpu_die(void) { } #define get_hard_smp_processor_id(cpu) 0 +#define set_hard_smp_processor_id(cpu, phys) #define hard_smp_processor_id() 0 #endif /* !(CONFIG_SMP) */ +#ifndef __ASSEMBLY__ +extern int boot_cpuid; +extern int boot_cpuid_phys; +#endif + #endif /* !(_PPC_SMP_H) */ #endif /* __KERNEL__ */ |