/kernel/linux/linux-5.10/arch/parisc/kernel/ |
D | topology.c | 22 struct cputopo_parisc cpu_topology[NR_CPUS] __read_mostly; variable 23 EXPORT_SYMBOL_GPL(cpu_topology); 27 return &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask() 32 struct cputopo_parisc *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() 37 cpu_topo = &cpu_topology[cpu]; in update_siblings_masks() 65 struct cputopo_parisc *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() 86 cpuid_topo->core_id = cpu_topology[cpu].core_id; in store_cpu_topology() 89 cpuid_topo->socket_id = cpu_topology[cpu].socket_id; in store_cpu_topology() 96 max_socket = max(max_socket, cpu_topology[cpu].socket_id); in store_cpu_topology() 105 cpuid, cpu_topology[cpuid].thread_id, in store_cpu_topology() [all …]
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | topology.h | 27 extern struct cpu_topology_s390 cpu_topology[NR_CPUS]; 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) [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | arch_topology.h | 49 struct cpu_topology { struct 60 extern struct cpu_topology cpu_topology[NR_CPUS]; argument 62 #define topology_physical_package_id(cpu) (cpu_topology[cpu].package_id) 63 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 64 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 65 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) 66 #define topology_llc_cpumask(cpu) (&cpu_topology[cpu].llc_sibling)
|
/kernel/linux/linux-5.10/drivers/base/ |
D | arch_topology.c | 345 cpu_topology[cpu].package_id = package_id; in parse_core() 346 cpu_topology[cpu].core_id = core_id; in parse_core() 347 cpu_topology[cpu].thread_id = i; in parse_core() 366 cpu_topology[cpu].package_id = package_id; in parse_core() 367 cpu_topology[cpu].core_id = core_id; in parse_core() 475 if (cpu_topology[cpu].package_id == -1) in parse_dt_topology() 489 struct cpu_topology cpu_topology[NR_CPUS]; variable 490 EXPORT_SYMBOL_GPL(cpu_topology); 497 if (cpumask_subset(&cpu_topology[cpu].core_sibling, core_mask)) { in cpu_coregroup_mask() 499 core_mask = &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask() [all …]
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
D | topology.h | 16 extern struct cputopo_parisc cpu_topology[NR_CPUS]; 18 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) 19 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 20 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 21 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling)
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | topology.c | 27 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() 99 cpu_topology[cpu].thread_id = topology_id; in parse_acpi_topology() 101 cpu_topology[cpu].core_id = topology_id; in parse_acpi_topology() 103 cpu_topology[cpu].thread_id = -1; in parse_acpi_topology() 104 cpu_topology[cpu].core_id = topology_id; in parse_acpi_topology() 107 cpu_topology[cpu].package_id = topology_id; in parse_acpi_topology() 118 cpu_topology[cpu].llc_id = cache_id; in parse_acpi_topology()
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
D | topology.c | 187 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() 227 cpuid, cpu_topology[cpuid].thread_id, in store_cpu_topology() 228 cpu_topology[cpuid].core_id, in store_cpu_topology() 229 cpu_topology[cpuid].package_id, mpidr); in store_cpu_topology()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | cputopo.h | 7 struct cpu_topology { struct 28 struct cpu_topology *cpu_topology__new(void); argument 29 void cpu_topology__delete(struct cpu_topology *tp);
|
D | cputopo.c | 31 static int build_cpu_topology(struct cpu_topology *tp, int cpu) in build_cpu_topology() 134 void cpu_topology__delete(struct cpu_topology *tp) in cpu_topology__delete() 174 struct cpu_topology *cpu_topology__new(void) in cpu_topology__new() 176 struct cpu_topology *tp = NULL; in cpu_topology__new()
|
D | header.c | 574 struct cpu_topology *tp; in write_cpu_topology() 3111 FEAT_OPR(CPU_TOPOLOGY, cpu_topology, true),
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | topology.c | 62 struct cpu_topology_s390 cpu_topology[NR_CPUS]; variable 63 EXPORT_SYMBOL_GPL(cpu_topology); 130 topo = &cpu_topology[lcpu + i]; in add_cpus_to_mask() 252 topo = &cpu_topology[cpu]; in update_cpu_masks() 268 topo = &cpu_topology[cpu]; in update_cpu_masks() 270 topo_package = &cpu_topology[pkg_first]; in update_cpu_masks() 273 topo_sibling = &cpu_topology[sibling]; in update_cpu_masks() 495 return &cpu_topology[cpu].thread_mask; in cpu_thread_mask() 501 return &cpu_topology[cpu].core_mask; in cpu_coregroup_mask() 506 return &cpu_topology[cpu].book_mask; in cpu_book_mask() [all …]
|
/kernel/linux/linux-5.10/arch/arc/kernel/ |
D | setup.c | 689 static DEFINE_PER_CPU(struct cpu, cpu_topology); 696 register_cpu(&per_cpu(cpu_topology, cpu), cpu); in topology_init()
|
/kernel/linux/linux-5.10/tools/power/x86/intel-speed-select/ |
D | isst-config.c | 68 struct cpu_topology { struct 205 struct cpu_topology cpu_top; in get_stored_topology_info() 256 struct cpu_topology cpu_top; in store_cpu_topology()
|
/kernel/linux/linux-5.10/tools/power/x86/turbostat/ |
D | turbostat.c | 390 struct cpu_topology { struct 2730 int get_physical_node_id(struct cpu_topology *thiscpu) in get_physical_node_id() 2749 int get_thread_siblings(struct cpu_topology *thiscpu) in get_thread_siblings() 5371 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology)); in topology_probe()
|