/Linux-v4.19/arch/arm64/kernel/ |
D | topology.c | 69 cpu_topology[cpu].package_id = package_id; in parse_core() 70 cpu_topology[cpu].core_id = core_id; in parse_core() 71 cpu_topology[cpu].thread_id = i; in parse_core() 91 cpu_topology[cpu].package_id = package_id; in parse_core() 92 cpu_topology[cpu].core_id = core_id; in parse_core() 200 if (cpu_topology[cpu].package_id == -1) in parse_dt_topology() 213 struct cpu_topology cpu_topology[NR_CPUS]; variable 214 EXPORT_SYMBOL_GPL(cpu_topology); 221 if (cpumask_subset(&cpu_topology[cpu].core_sibling, core_mask)) { in cpu_coregroup_mask() 223 core_mask = &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/arch/s390/include/asm/ |
D | topology.h | 27 extern struct cpu_topology_s390 cpu_topology[NR_CPUS]; 30 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) 31 #define topology_thread_id(cpu) (cpu_topology[cpu].thread_id) 32 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_mask) 33 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 34 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_mask) 35 #define topology_book_id(cpu) (cpu_topology[cpu].book_id) 36 #define topology_book_cpumask(cpu) (&cpu_topology[cpu].book_mask) 37 #define topology_drawer_id(cpu) (cpu_topology[cpu].drawer_id) 38 #define topology_drawer_cpumask(cpu) (&cpu_topology[cpu].drawer_mask) [all …]
|
/Linux-v4.19/arch/arm64/include/asm/ |
D | topology.h | 7 struct cpu_topology { struct 17 extern struct cpu_topology cpu_topology[NR_CPUS]; argument 19 #define topology_physical_package_id(cpu) (cpu_topology[cpu].package_id) 20 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 21 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 22 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) 23 #define topology_llc_cpumask(cpu) (&cpu_topology[cpu].llc_sibling)
|
/Linux-v4.19/arch/arm/kernel/ |
D | topology.c | 189 struct cputopo_arm cpu_topology[NR_CPUS]; variable 190 EXPORT_SYMBOL_GPL(cpu_topology); 194 return &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask() 203 return &cpu_topology[cpu].thread_sibling; in cpu_corepower_mask() 208 struct cputopo_arm *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() 213 cpu_topo = &cpu_topology[cpu]; in update_siblings_masks() 239 struct cputopo_arm *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() 282 cpuid, cpu_topology[cpuid].thread_id, in store_cpu_topology() 283 cpu_topology[cpuid].core_id, in store_cpu_topology() 284 cpu_topology[cpuid].socket_id, mpidr); in store_cpu_topology() [all …]
|
/Linux-v4.19/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)
|
/Linux-v4.19/arch/arm/include/asm/ |
D | topology.h | 17 extern struct cputopo_arm cpu_topology[NR_CPUS]; 19 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) 20 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 21 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 22 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling)
|
/Linux-v4.19/arch/s390/kernel/ |
D | topology.c | 63 struct cpu_topology_s390 cpu_topology[NR_CPUS]; variable 64 EXPORT_SYMBOL_GPL(cpu_topology); 131 topo = &cpu_topology[lcpu + i]; in add_cpus_to_mask() 254 topo = &cpu_topology[cpu]; in update_cpu_masks() 484 return &cpu_topology[cpu].thread_mask; in cpu_thread_mask() 490 return &cpu_topology[cpu].core_mask; in cpu_coregroup_mask() 495 return &cpu_topology[cpu].book_mask; in cpu_book_mask() 500 return &cpu_topology[cpu].drawer_mask; in cpu_drawer_mask()
|
/Linux-v4.19/arch/s390/numa/ |
D | mode_emu.c | 358 top = &cpu_topology[cpu]; in toptree_from_topology() 381 top = &cpu_topology[cpu]; in topology_add_core() 442 cpu_topology[cpu].node_id = node_id; in pin_all_possible_cpus()
|
/Linux-v4.19/drivers/base/ |
D | arch_topology.c | 71 for_each_cpu(i, &cpu_topology[this_cpu].core_sibling) in cpu_capacity_store()
|
/Linux-v4.19/arch/arc/kernel/ |
D | setup.c | 627 static DEFINE_PER_CPU(struct cpu, cpu_topology); 634 register_cpu(&per_cpu(cpu_topology, cpu), cpu); in topology_init()
|
/Linux-v4.19/tools/power/x86/turbostat/ |
D | turbostat.c | 272 struct cpu_topology { struct 2513 int get_physical_node_id(struct cpu_topology *thiscpu) in get_physical_node_id() 2532 int get_thread_siblings(struct cpu_topology *thiscpu) in get_thread_siblings() 4763 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology)); in topology_probe()
|
/Linux-v4.19/tools/perf/util/ |
D | header.c | 2583 FEAT_OPR(CPU_TOPOLOGY, cpu_topology, true),
|