Home
last modified time | relevance | path

Searched refs:cpu_topology (Results 1 – 11 of 11) sorted by relevance

/linux-4.4.14/arch/arm64/kernel/
Dtopology.c64 cpu_topology[cpu].cluster_id = cluster_id; in parse_core()
65 cpu_topology[cpu].core_id = core_id; in parse_core()
66 cpu_topology[cpu].thread_id = i; in parse_core()
86 cpu_topology[cpu].cluster_id = cluster_id; in parse_core()
87 cpu_topology[cpu].core_id = core_id; in parse_core()
193 if (cpu_topology[cpu].cluster_id == -1) in parse_dt_topology()
206 struct cpu_topology cpu_topology[NR_CPUS]; variable
207 EXPORT_SYMBOL_GPL(cpu_topology);
211 return &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask()
216 struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks()
[all …]
/linux-4.4.14/arch/arm64/include/asm/
Dtopology.h6 struct cpu_topology { struct
14 extern struct cpu_topology cpu_topology[NR_CPUS]; argument
16 #define topology_physical_package_id(cpu) (cpu_topology[cpu].cluster_id)
17 #define topology_core_id(cpu) (cpu_topology[cpu].core_id)
18 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling)
19 #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling)
/linux-4.4.14/arch/s390/include/asm/
Dtopology.h23 DECLARE_PER_CPU(struct cpu_topology_s390, cpu_topology);
25 #define topology_physical_package_id(cpu) (per_cpu(cpu_topology, cpu).socket_id)
26 #define topology_thread_id(cpu) (per_cpu(cpu_topology, cpu).thread_id)
28 (&per_cpu(cpu_topology, cpu).thread_mask)
29 #define topology_core_id(cpu) (per_cpu(cpu_topology, cpu).core_id)
30 #define topology_core_cpumask(cpu) (&per_cpu(cpu_topology, cpu).core_mask)
31 #define topology_book_id(cpu) (per_cpu(cpu_topology, cpu).book_id)
32 #define topology_book_cpumask(cpu) (&per_cpu(cpu_topology, cpu).book_mask)
64 return per_cpu(cpu_topology, cpu).node_id; in cpu_to_node()
/linux-4.4.14/arch/arm/kernel/
Dtopology.c180 struct cputopo_arm cpu_topology[NR_CPUS]; variable
181 EXPORT_SYMBOL_GPL(cpu_topology);
185 return &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask()
194 return &cpu_topology[cpu].thread_sibling; in cpu_corepower_mask()
199 struct cputopo_arm *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks()
204 cpu_topo = &cpu_topology[cpu]; in update_siblings_masks()
230 struct cputopo_arm *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology()
273 cpuid, cpu_topology[cpuid].thread_id, in store_cpu_topology()
274 cpu_topology[cpuid].core_id, in store_cpu_topology()
275 cpu_topology[cpuid].socket_id, mpidr); in store_cpu_topology()
[all …]
/linux-4.4.14/arch/arm/include/asm/
Dtopology.h16 extern struct cputopo_arm 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-4.4.14/arch/s390/kernel/
Dtopology.c50 DEFINE_PER_CPU(struct cpu_topology_s390, cpu_topology);
51 EXPORT_PER_CPU_SYMBOL_GPL(cpu_topology);
99 topo = &per_cpu(cpu_topology, lcpu + i); in add_cpus_to_mask()
256 topo = &per_cpu(cpu_topology, cpu); in update_cpu_masks()
431 return &per_cpu(cpu_topology, cpu).thread_mask; in cpu_thread_mask()
437 return &per_cpu(cpu_topology, cpu).core_mask; in cpu_coregroup_mask()
442 return &per_cpu(cpu_topology, cpu).book_mask; in cpu_book_mask()
/linux-4.4.14/arch/s390/numa/
Dmode_emu.c345 top = &per_cpu(cpu_topology, cpu); in toptree_from_topology()
367 top = &per_cpu(cpu_topology, cpu); in topology_add_core()
/linux-4.4.14/arch/arc/kernel/
Dsetup.c525 static DEFINE_PER_CPU(struct cpu, cpu_topology);
532 register_cpu(&per_cpu(cpu_topology, cpu), cpu); in topology_init()
/linux-4.4.14/drivers/cpufreq/
Dmt8173-cpufreq.c441 cpumask_copy(policy->cpus, &cpu_topology[policy->cpu].core_sibling); in mtk_cpufreq_init()
/linux-4.4.14/tools/power/x86/turbostat/
Dturbostat.c2848 struct cpu_topology { in topology_probe() struct
2863 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology)); in topology_probe()
/linux-4.4.14/tools/perf/util/
Dheader.c1945 FEAT_OPF(HEADER_CPU_TOPOLOGY, cpu_topology),