Lines Matching refs:cpu
8 struct cpu;
25 #define topology_physical_package_id(cpu) (per_cpu(cpu_topology, cpu).socket_id) argument
26 #define topology_thread_id(cpu) (per_cpu(cpu_topology, cpu).thread_id) argument
27 #define topology_sibling_cpumask(cpu) \ argument
28 (&per_cpu(cpu_topology, cpu).thread_mask)
29 #define topology_core_id(cpu) (per_cpu(cpu_topology, cpu).core_id) argument
30 #define topology_core_cpumask(cpu) (&per_cpu(cpu_topology, cpu).core_mask) argument
31 #define topology_book_id(cpu) (per_cpu(cpu_topology, cpu).book_id) argument
32 #define topology_book_cpumask(cpu) (&per_cpu(cpu_topology, cpu).book_mask) argument
36 int topology_cpu_init(struct cpu *);
41 const struct cpumask *cpu_coregroup_mask(int cpu);
46 static inline int topology_cpu_init(struct cpu *cpu) { return 0; } in topology_cpu_init() argument
62 static inline int cpu_to_node(int cpu) in cpu_to_node() argument
64 return per_cpu(cpu_topology, cpu).node_id; in cpu_to_node()