Lines Matching refs:cpu

94 static inline int cpu_to_node(int cpu)  in cpu_to_node()  argument
96 return per_cpu(numa_node, cpu); in cpu_to_node()
108 static inline void set_cpu_numa_node(int cpu, int node) in set_cpu_numa_node() argument
110 per_cpu(numa_node, cpu) = node; in set_cpu_numa_node()
151 static inline int cpu_to_mem(int cpu) in cpu_to_mem() argument
153 return per_cpu(_numa_mem_, cpu); in cpu_to_mem()
158 static inline void set_cpu_numa_mem(int cpu, int node) in set_cpu_numa_mem() argument
160 per_cpu(_numa_mem_, cpu) = node; in set_cpu_numa_mem()
175 static inline int cpu_to_mem(int cpu) in cpu_to_mem() argument
177 return cpu_to_node(cpu); in cpu_to_mem()
197 #define topology_physical_package_id(cpu) ((void)(cpu), -1) argument
200 #define topology_die_id(cpu) ((void)(cpu), -1) argument
203 #define topology_cluster_id(cpu) ((void)(cpu), -1) argument
206 #define topology_core_id(cpu) ((void)(cpu), 0) argument
209 #define topology_book_id(cpu) ((void)(cpu), -1) argument
212 #define topology_drawer_id(cpu) ((void)(cpu), -1) argument
215 #define topology_ppin(cpu) ((void)(cpu), 0ull) argument
218 #define topology_sibling_cpumask(cpu) cpumask_of(cpu) argument
221 #define topology_core_cpumask(cpu) cpumask_of(cpu) argument
224 #define topology_cluster_cpumask(cpu) cpumask_of(cpu) argument
227 #define topology_die_cpumask(cpu) cpumask_of(cpu) argument
230 #define topology_book_cpumask(cpu) cpumask_of(cpu) argument
233 #define topology_drawer_cpumask(cpu) cpumask_of(cpu) argument
237 static inline const struct cpumask *cpu_smt_mask(int cpu) in cpu_smt_mask() argument
239 return topology_sibling_cpumask(cpu); in cpu_smt_mask()
243 static inline const struct cpumask *cpu_cpu_mask(int cpu) in cpu_cpu_mask() argument
245 return cpumask_of_node(cpu_to_node(cpu)); in cpu_cpu_mask()
249 int sched_numa_find_nth_cpu(const struct cpumask *cpus, int cpu, int node);
252 static __always_inline int sched_numa_find_nth_cpu(const struct cpumask *cpus, int cpu, int node) in sched_numa_find_nth_cpu() argument
254 return cpumask_nth_and(cpu, cpus, cpu_online_mask); in sched_numa_find_nth_cpu()