Home
last modified time | relevance | path

Searched refs:cpu_top (Results 1 – 5 of 5) sorted by relevance

/linux-6.15/tools/power/cpupower/lib/
H A Dcpupower.c175 if (cpu_top->core_info == NULL) in get_cpu_topology()
177 cpu_top->pkgs = cpu_top->cores = 0; in get_cpu_topology()
179 cpu_top->core_info[cpu].cpu = cpu; in get_cpu_topology()
185 cpu_top->core_info[cpu].pkg = -1; in get_cpu_topology()
186 cpu_top->core_info[cpu].core = -1; in get_cpu_topology()
193 cpu_top->core_info[cpu].pkg = -1; in get_cpu_topology()
218 cpu_top->cores = 1; in get_cpu_topology()
223 cpu_top->cores++; in get_cpu_topology()
239 cpu_top->pkgs++; in get_cpu_topology()
243 cpu_top->pkgs++; in get_cpu_topology()
[all …]
H A Dcpupower.h31 int get_cpu_topology(struct cpupower_topology *cpu_top);
32 void cpu_topology_release(struct cpupower_topology cpu_top);
/linux-6.15/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.c42 static struct cpupower_topology cpu_top; variable
164 cpu_top.core_info[cpu].pkg == -1) in print_results()
193 cpu_top.core_info[cpu].cpu); in print_results()
202 cpu_top.core_info[cpu].cpu); in print_results()
422 if (!cpu_top.core_info[0].is_online) in cmd_monitor()
448 cpu_topology_release(cpu_top); in cmd_monitor()
454 cpu_topology_release(cpu_top); in cmd_monitor()
462 cpu_top.pkgs, cpu_top.cores, cpu_count); in cmd_monitor()
474 if (cpu_top.pkgs > 1) in cmd_monitor()
480 if (cpu_top.pkgs > 1) in cmd_monitor()
[all …]
/linux-6.15/tools/power/x86/intel-speed-select/
H A Disst-config.c259 ret = fread(&cpu_top, sizeof(cpu_top), 1, fp); in get_stored_topology_info()
265 *pkg_id = cpu_top.pkg_id; in get_stored_topology_info()
267 *die_id = cpu_top.die_id; in get_stored_topology_info()
302 if (cpu_top.core_id < 0) in store_cpu_topology()
303 cpu_top.core_id = -1; in store_cpu_topology()
307 if (cpu_top.pkg_id < 0) in store_cpu_topology()
308 cpu_top.pkg_id = -1; in store_cpu_topology()
312 if (cpu_top.die_id < 0) in store_cpu_topology()
313 cpu_top.die_id = -1; in store_cpu_topology()
315 cpu_top.cpu = i; in store_cpu_topology()
[all …]
/linux-6.15/tools/power/cpupower/bindings/python/
H A Draw_pylibcpupower.swg205 int get_cpu_topology(struct cpupower_topology *cpu_top);
207 void cpu_topology_release(struct cpupower_topology cpu_top);