Lines Matching defs:cpu
94 static inline int cpu_to_node(int cpu) in cpu_to_node()
108 static inline void set_cpu_numa_node(int cpu, int node) in set_cpu_numa_node()
151 static inline int cpu_to_mem(int cpu) in cpu_to_mem()
158 static inline void set_cpu_numa_mem(int cpu, int node) in set_cpu_numa_mem()
175 static inline int cpu_to_mem(int 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()
243 static inline const struct cpumask *cpu_cpu_mask(int cpu) in cpu_cpu_mask()
252 static __always_inline int sched_numa_find_nth_cpu(const struct cpumask *cpus, int cpu, int node) in sched_numa_find_nth_cpu()