Lines Matching refs:cpu
35 extern int cpu_to_chip_id(int cpu);
45 void (*message_pass)(int cpu, int msg);
47 void (*cause_ipi)(int cpu);
49 int (*cause_nmi_ipi)(int cpu);
68 extern int smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us);
69 extern int smp_send_safe_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us);
79 void generic_cpu_die(unsigned int cpu);
80 void generic_set_cpu_dead(unsigned int cpu);
81 void generic_set_cpu_up(unsigned int cpu);
82 int generic_check_cpu_restart(unsigned int cpu);
83 int is_cpu_dead(unsigned int cpu);
95 #define raw_smp_processor_id() (current_thread_info()->cpu)
98 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() argument
100 return smp_hw_index[cpu]; in get_hard_smp_processor_id()
103 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument
105 smp_hw_index[cpu] = phys; in set_hard_smp_processor_id()
114 static inline struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask() argument
116 return per_cpu(cpu_sibling_map, cpu); in cpu_sibling_mask()
119 static inline struct cpumask *cpu_core_mask(int cpu) in cpu_core_mask() argument
121 return per_cpu(cpu_core_map, cpu); in cpu_core_mask()
124 static inline struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask() argument
126 return per_cpu(cpu_l2_cache_map, cpu); in cpu_l2_cache_mask()
129 static inline struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask() argument
131 return per_cpu(cpu_smallcore_map, cpu); in cpu_smallcore_mask()
134 extern int cpu_to_core_id(int cpu);
142 static inline const struct cpumask *cpu_smt_mask(int cpu) in cpu_smt_mask() argument
145 return per_cpu(cpu_smallcore_map, cpu); in cpu_smt_mask()
147 return per_cpu(cpu_sibling_map, cpu); in cpu_smt_mask()
176 extern void smp_muxed_ipi_message_pass(int cpu, int msg);
177 extern void smp_muxed_ipi_set_message(int cpu, int msg);
186 extern void __cpu_die(unsigned int cpu);
194 static inline const struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask() argument
196 return cpumask_of(cpu); in cpu_sibling_mask()
199 static inline const struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask() argument
201 return cpumask_of(cpu); in cpu_smallcore_mask()
204 static inline const struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask() argument
206 return cpumask_of(cpu); in cpu_l2_cache_mask()
211 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() argument
213 return paca_ptrs[cpu]->hw_cpu_id; in get_hard_smp_processor_id()
216 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument
218 paca_ptrs[cpu]->hw_cpu_id = phys; in set_hard_smp_processor_id()
224 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() argument
229 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() argument
245 extern void smp_mpic_setup_cpu(int cpu);
255 extern void arch_send_call_function_single_ipi(int cpu);