Home
last modified time | relevance | path

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

/linux/arch/s390/include/asm/
H A Dtopology.h27 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 …]
/linux/drivers/base/
H A Darch_topology.c557 cpu_topology[cpu].package_id = package_id; in parse_core()
558 cpu_topology[cpu].cluster_id = cluster_id; in parse_core()
559 cpu_topology[cpu].core_id = core_id; in parse_core()
560 cpu_topology[cpu].thread_id = i; in parse_core()
576 cpu_topology[cpu].package_id = package_id; in parse_core()
577 cpu_topology[cpu].cluster_id = cluster_id; in parse_core()
578 cpu_topology[cpu].core_id = core_id; in parse_core()
716 if (cpu_topology[cpu].package_id < 0) { in parse_dt_topology()
727 struct cpu_topology cpu_topology[NR_CPUS]; variable
728 EXPORT_SYMBOL_GPL(cpu_topology);
[all …]
/linux/arch/parisc/kernel/
H A Dtopology.c30 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology()
57 cpuid_topo->core_id = cpu_topology[cpu].core_id; in store_cpu_topology()
60 cpuid_topo->package_id = cpu_topology[cpu].package_id; in store_cpu_topology()
66 max_socket = max(max_socket, cpu_topology[cpu].package_id); in store_cpu_topology()
76 cpu_topology[cpuid].core_id, in store_cpu_topology()
77 cpu_topology[cpuid].package_id); in store_cpu_topology()
/linux/tools/perf/util/
H A Dcputopo.h7 struct cpu_topology { struct
62 const struct cpu_topology *online_topology(void);
64 struct cpu_topology *cpu_topology__new(void);
65 void cpu_topology__delete(struct cpu_topology *tp);
67 bool cpu_topology__smt_on(const struct cpu_topology *topology);
69 bool cpu_topology__core_wide(const struct cpu_topology *topology,
H A Dcputopo.c35 static int build_cpu_topology(struct cpu_topology *tp, int cpu) in build_cpu_topology()
142 void cpu_topology__delete(struct cpu_topology *tp) in cpu_topology__delete()
161 bool cpu_topology__smt_on(const struct cpu_topology *topology) in cpu_topology__smt_on()
176 bool cpu_topology__core_wide(const struct cpu_topology *topology, in cpu_topology__core_wide()
242 const struct cpu_topology *online_topology(void) in online_topology()
244 static const struct cpu_topology *topology; in online_topology()
256 struct cpu_topology *cpu_topology__new(void) in cpu_topology__new()
258 struct cpu_topology *tp = NULL; in cpu_topology__new()
/linux/arch/arm/kernel/
H A Dtopology.c187 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()
/linux/arch/arm64/kernel/
H A Dtopology.c57 cpu_topology[cpu].thread_id = topology_id; in parse_acpi_topology()
59 cpu_topology[cpu].core_id = topology_id; in parse_acpi_topology()
61 cpu_topology[cpu].thread_id = -1; in parse_acpi_topology()
62 cpu_topology[cpu].core_id = topology_id; in parse_acpi_topology()
65 cpu_topology[cpu].cluster_id = topology_id; in parse_acpi_topology()
67 cpu_topology[cpu].package_id = topology_id; in parse_acpi_topology()
/linux/arch/arc/kernel/
H A Dsetup.c642 static DEFINE_PER_CPU(struct cpu, cpu_topology);
649 register_cpu(&per_cpu(cpu_topology, cpu), cpu); in topology_init()
/linux/tools/power/x86/intel-speed-select/
H A Disst-config.c74 struct cpu_topology { struct
246 struct cpu_topology cpu_top; in get_stored_topology_info()
297 struct cpu_topology cpu_top; in store_cpu_topology()
75 cpucpu_topology global() argument
76 core_idcpu_topology global() argument
77 pkg_idcpu_topology global() argument
78 die_idcpu_topology global() argument