Lines Matching refs:cpu
33 extern int cpu_to_chip_id(int cpu);
43 void (*message_pass)(int cpu, int msg);
45 void (*cause_ipi)(int cpu);
47 int (*cause_nmi_ipi)(int cpu);
66 extern int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us);
67 extern int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us);
77 void generic_cpu_die(unsigned int cpu);
78 void generic_set_cpu_dead(unsigned int cpu);
79 void generic_set_cpu_up(unsigned int cpu);
80 int generic_check_cpu_restart(unsigned int cpu);
81 int is_cpu_dead(unsigned int cpu);
93 #define raw_smp_processor_id() (current_thread_info()->cpu)
96 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() argument
98 return smp_hw_index[cpu]; in get_hard_smp_processor_id()
101 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument
103 smp_hw_index[cpu] = phys; in set_hard_smp_processor_id()
112 static inline struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask() argument
114 return per_cpu(cpu_sibling_map, cpu); in cpu_sibling_mask()
117 static inline struct cpumask *cpu_core_mask(int cpu) in cpu_core_mask() argument
119 return per_cpu(cpu_core_map, cpu); in cpu_core_mask()
122 static inline struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask() argument
124 return per_cpu(cpu_l2_cache_map, cpu); in cpu_l2_cache_mask()
127 static inline struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask() argument
129 return per_cpu(cpu_smallcore_map, cpu); in cpu_smallcore_mask()
132 extern int cpu_to_core_id(int cpu);
140 static inline const struct cpumask *cpu_smt_mask(int cpu) in cpu_smt_mask() argument
143 return per_cpu(cpu_smallcore_map, cpu); in cpu_smt_mask()
145 return per_cpu(cpu_sibling_map, cpu); in cpu_smt_mask()
174 extern void smp_muxed_ipi_message_pass(int cpu, int msg);
175 extern void smp_muxed_ipi_set_message(int cpu, int msg);
184 extern void __cpu_die(unsigned int cpu);
192 static inline const struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask() argument
194 return cpumask_of(cpu); in cpu_sibling_mask()
197 static inline const struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask() argument
199 return cpumask_of(cpu); in cpu_smallcore_mask()
202 static inline const struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask() argument
204 return cpumask_of(cpu); in cpu_l2_cache_mask()
209 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() argument
211 return paca_ptrs[cpu]->hw_cpu_id; in get_hard_smp_processor_id()
214 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument
216 paca_ptrs[cpu]->hw_cpu_id = phys; in set_hard_smp_processor_id()
222 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() argument
227 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument
243 extern void smp_mpic_setup_cpu(int cpu);
253 extern void arch_send_call_function_single_ipi(int cpu);