diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-27 08:42:04 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-27 08:42:04 -0400 |
commit | 80579e1f4a6b5f5dec92faa6c3e0645961c99091 (patch) | |
tree | d8fd5e184b54145811a92914c806544ad745087a /include/asm-ppc/smp.h | |
parent | eef69e3cfb38d83166dbd8bcb12ededa1b6e78b6 (diff) |
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); | |||
53 | extern int smp_hw_index[]; | 53 | extern int smp_hw_index[]; |
54 | #define hard_smp_processor_id() (smp_hw_index[smp_processor_id()]) | 54 | #define hard_smp_processor_id() (smp_hw_index[smp_processor_id()]) |
55 | #define get_hard_smp_processor_id(cpu) (smp_hw_index[(cpu)]) | 55 | #define get_hard_smp_processor_id(cpu) (smp_hw_index[(cpu)]) |
56 | 56 | #define set_hard_smp_processor_id(cpu, phys)\ | |
57 | (smp_hw_index[(cpu)] = (phys)) | ||
58 | |||
57 | #endif /* __ASSEMBLY__ */ | 59 | #endif /* __ASSEMBLY__ */ |
58 | 60 | ||
59 | #else /* !(CONFIG_SMP) */ | 61 | #else /* !(CONFIG_SMP) */ |
60 | 62 | ||
61 | static inline void cpu_die(void) { } | 63 | static inline void cpu_die(void) { } |
62 | #define get_hard_smp_processor_id(cpu) 0 | 64 | #define get_hard_smp_processor_id(cpu) 0 |
65 | #define set_hard_smp_processor_id(cpu, phys) | ||
63 | #define hard_smp_processor_id() 0 | 66 | #define hard_smp_processor_id() 0 |
64 | 67 | ||
65 | #endif /* !(CONFIG_SMP) */ | 68 | #endif /* !(CONFIG_SMP) */ |
66 | 69 | ||
70 | #ifndef __ASSEMBLY__ | ||
71 | extern int boot_cpuid; | ||
72 | extern int boot_cpuid_phys; | ||
73 | #endif | ||
74 | |||
67 | #endif /* !(_PPC_SMP_H) */ | 75 | #endif /* !(_PPC_SMP_H) */ |
68 | #endif /* __KERNEL__ */ | 76 | #endif /* __KERNEL__ */ |