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()
184 #define topology_physical_package_id(cpu) ((void)(cpu), -1) argument
187 #define topology_die_id(cpu) ((void)(cpu), -1) argument
190 #define topology_core_id(cpu) ((void)(cpu), 0) argument
193 #define topology_sibling_cpumask(cpu) cpumask_of(cpu) argument
196 #define topology_core_cpumask(cpu) cpumask_of(cpu) argument
199 #define topology_die_cpumask(cpu) cpumask_of(cpu) argument
203 static inline const struct cpumask *cpu_smt_mask(int cpu) in cpu_smt_mask() argument
205 return topology_sibling_cpumask(cpu); in cpu_smt_mask()
209 static inline const struct cpumask *cpu_cpu_mask(int cpu) in cpu_cpu_mask() argument
211 return cpumask_of_node(cpu_to_node(cpu)); in cpu_cpu_mask()