Lines Matching defs:cpu
9 struct cpu;
29 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id)
30 #define topology_thread_id(cpu) (cpu_topology[cpu].thread_id)
31 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_mask)
32 #define topology_core_id(cpu) (cpu_topology[cpu].core_id)
33 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_mask)
34 #define topology_book_id(cpu) (cpu_topology[cpu].book_id)
35 #define topology_book_cpumask(cpu) (&cpu_topology[cpu].book_mask)
36 #define topology_drawer_id(cpu) (cpu_topology[cpu].drawer_id)
37 #define topology_drawer_cpumask(cpu) (&cpu_topology[cpu].drawer_mask)
38 #define topology_cpu_dedicated(cpu) (cpu_topology[cpu].dedicated)
39 #define topology_booted_cores(cpu) (cpu_topology[cpu].booted_cores)
44 int topology_cpu_init(struct cpu *);
50 const struct cpumask *cpu_coregroup_mask(int cpu);
56 static inline int topology_cpu_init(struct cpu *cpu) { return 0; }
64 static inline bool topology_is_primary_thread(unsigned int cpu)
66 return smp_get_base_cpu(cpu) == cpu;
84 static inline int cpu_to_node(int cpu)