smp.h (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) | smp.h (b1923caa6e641f3d0a93b5d045aef67ded5aef67) |
---|---|
1/* 2 * smp.h: PowerPC-specific SMP code. 3 * 4 * Original was a copy of sparc smp.h. Now heavily modified 5 * for PPC. 6 * 7 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu) 8 * Copyright (C) 1996-2001 Cort Dougan <cort@fsmlabs.com> --- 146 unchanged lines hidden (view full) --- 155{ 156 return paca[cpu].hw_cpu_id; 157} 158 159static inline void set_hard_smp_processor_id(int cpu, int phys) 160{ 161 paca[cpu].hw_cpu_id = phys; 162} | 1/* 2 * smp.h: PowerPC-specific SMP code. 3 * 4 * Original was a copy of sparc smp.h. Now heavily modified 5 * for PPC. 6 * 7 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu) 8 * Copyright (C) 1996-2001 Cort Dougan <cort@fsmlabs.com> --- 146 unchanged lines hidden (view full) --- 155{ 156 return paca[cpu].hw_cpu_id; 157} 158 159static inline void set_hard_smp_processor_id(int cpu, int phys) 160{ 161 paca[cpu].hw_cpu_id = phys; 162} |
163 164extern void smp_release_cpus(void); 165 | |
166#else 167/* 32-bit */ 168#ifndef CONFIG_SMP 169extern int boot_cpuid_phys; 170static inline int get_hard_smp_processor_id(int cpu) 171{ 172 return boot_cpuid_phys; 173} 174 175static inline void set_hard_smp_processor_id(int cpu, int phys) 176{ 177 boot_cpuid_phys = phys; 178} 179#endif /* !CONFIG_SMP */ 180#endif /* !CONFIG_PPC64 */ 181 | 163#else 164/* 32-bit */ 165#ifndef CONFIG_SMP 166extern int boot_cpuid_phys; 167static inline int get_hard_smp_processor_id(int cpu) 168{ 169 return boot_cpuid_phys; 170} 171 172static inline void set_hard_smp_processor_id(int cpu, int phys) 173{ 174 boot_cpuid_phys = phys; 175} 176#endif /* !CONFIG_SMP */ 177#endif /* !CONFIG_PPC64 */ 178 |
179#if defined(CONFIG_PPC64) && (defined(CONFIG_SMP) || defined(CONFIG_KEXEC)) 180extern void smp_release_cpus(void); 181#else 182static inline void smp_release_cpus(void) { }; 183#endif 184 |
|
182extern int smt_enabled_at_boot; 183 184extern void smp_mpic_probe(void); 185extern void smp_mpic_setup_cpu(int cpu); 186extern int smp_generic_kick_cpu(int nr); 187extern int smp_generic_cpu_bootable(unsigned int nr); 188 189 --- 24 unchanged lines hidden --- | 185extern int smt_enabled_at_boot; 186 187extern void smp_mpic_probe(void); 188extern void smp_mpic_setup_cpu(int cpu); 189extern int smp_generic_kick_cpu(int nr); 190extern int smp_generic_cpu_bootable(unsigned int nr); 191 192 --- 24 unchanged lines hidden --- |