Searched refs:cpu_top (Results 1 – 5 of 5) sorted by relevance
| /linux/tools/power/cpupower/lib/ |
| H A D | cpupower.c | 168 int get_cpu_topology(struct cpupower_topology *cpu_top) in get_cpu_topology() argument 174 cpu_top->core_info = malloc(sizeof(struct cpuid_core_info) * cpus); in get_cpu_topology() 175 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() 180 cpu_top->core_info[cpu].is_online = cpupower_is_cpu_online(cpu); in get_cpu_topology() 184 &(cpu_top->core_info[cpu].pkg)) < 0) { 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() 192 &(cpu_top->core_info[cpu].core)) < 0) { in get_cpu_topology() [all …]
|
| H A D | cpupower.h | 31 int get_cpu_topology(struct cpupower_topology *cpu_top); 32 void cpu_topology_release(struct cpupower_topology cpu_top);
|
| /linux/tools/power/cpupower/utils/idle_monitor/ |
| H A D | cpupower-monitor.c | 42 static struct cpupower_topology cpu_top; variable 159 if (!bitmask_isbitset(cpus_chosen, cpu_top.core_info[cpu].cpu)) in print_results() 161 if (!cpu_top.core_info[cpu].is_online && in print_results() 162 cpu_top.core_info[cpu].pkg == -1) in print_results() 167 printf("%4d|", cpu_top.core_info[cpu].pkg); in print_results() 169 printf("%4d|", cpu_top.core_info[cpu].core); in print_results() 171 printf("%4d|", cpu_top.core_info[cpu].cpu); in print_results() 189 cpu_top.core_info[cpu].cpu); in print_results() 198 cpu_top.core_info[cpu].cpu); in print_results() 217 if (!cpu_top.core_info[cpu].is_online && in print_results() [all …]
|
| /linux/tools/power/x86/intel-speed-select/ |
| H A D | isst-config.c | 269 struct cpu_topology cpu_top; in get_stored_topology_info() local 277 ret = fseek(fp, cpu * sizeof(cpu_top), SEEK_SET); in get_stored_topology_info() 281 ret = fread(&cpu_top, sizeof(cpu_top), 1, fp); in get_stored_topology_info() 287 *pkg_id = cpu_top.pkg_id; in get_stored_topology_info() 288 *core_id = cpu_top.core_id; in get_stored_topology_info() 289 *die_id = cpu_top.die_id; in get_stored_topology_info() 320 struct cpu_topology cpu_top; in store_cpu_topology() local 322 cpu_top.core_id = parse_int_file(0, in store_cpu_topology() 324 if (cpu_top.core_id < 0) in store_cpu_topology() 325 cpu_top.core_id = -1; in store_cpu_topology() [all …]
|
| /linux/tools/power/cpupower/bindings/python/ |
| H A D | raw_pylibcpupower.swg | 205 int get_cpu_topology(struct cpupower_topology *cpu_top); 207 void cpu_topology_release(struct cpupower_topology cpu_top);
|