Lines Matching refs:cpu

48 extern int __cpu_to_node(int cpu);
51 extern int early_cpu_to_node(int cpu);
56 static inline int early_cpu_to_node(int cpu) in early_cpu_to_node() argument
58 return early_per_cpu(x86_cpu_to_node_map, cpu); in early_cpu_to_node()
94 static inline int early_cpu_to_node(int cpu) in early_cpu_to_node() argument
105 extern const struct cpumask *cpu_coregroup_mask(int cpu);
107 #define topology_logical_package_id(cpu) (cpu_data(cpu).logical_proc_id) argument
108 #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) argument
109 #define topology_logical_die_id(cpu) (cpu_data(cpu).logical_die_id) argument
110 #define topology_die_id(cpu) (cpu_data(cpu).cpu_die_id) argument
111 #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) argument
114 #define topology_die_cpumask(cpu) (per_cpu(cpu_die_map, cpu)) argument
115 #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) argument
116 #define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu)) argument
135 int topology_update_package_map(unsigned int apicid, unsigned int cpu);
136 int topology_update_die_map(unsigned int dieid, unsigned int cpu);
138 int topology_phys_to_logical_die(unsigned int die, unsigned int cpu);
139 bool topology_is_primary_thread(unsigned int cpu);
144 topology_update_package_map(unsigned int apicid, unsigned int cpu) { return 0; } in topology_update_package_map() argument
146 topology_update_die_map(unsigned int dieid, unsigned int cpu) { return 0; } in topology_update_die_map() argument
149 unsigned int cpu) { return 0; } in topology_phys_to_logical_die() argument
152 static inline bool topology_is_primary_thread(unsigned int cpu) { return true; } in topology_is_primary_thread() argument
205 static inline long arch_scale_freq_capacity(int cpu) in arch_scale_freq_capacity() argument
207 return per_cpu(arch_freq_scale, cpu); in arch_scale_freq_capacity()