Searched refs:core_info (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/tools/power/cpupower/lib/ |
D | cpupower.c | 136 cpu_top->core_info = malloc(sizeof(struct cpuid_core_info) * cpus); in get_cpu_topology() 137 if (cpu_top->core_info == NULL) in get_cpu_topology() 141 cpu_top->core_info[cpu].cpu = cpu; in get_cpu_topology() 142 cpu_top->core_info[cpu].is_online = cpupower_is_cpu_online(cpu); in get_cpu_topology() 146 &(cpu_top->core_info[cpu].pkg)) < 0) { in get_cpu_topology() 147 cpu_top->core_info[cpu].pkg = -1; in get_cpu_topology() 148 cpu_top->core_info[cpu].core = -1; in get_cpu_topology() 154 &(cpu_top->core_info[cpu].core)) < 0) { in get_cpu_topology() 155 cpu_top->core_info[cpu].pkg = -1; in get_cpu_topology() 156 cpu_top->core_info[cpu].core = -1; in get_cpu_topology() [all …]
|
D | cpupower.h | 12 struct cpuid_core_info *core_info; member
|
/Linux-v4.19/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.c | 149 if (!bitmask_isbitset(cpus_chosen, cpu_top.core_info[cpu].cpu)) in print_results() 151 if (!cpu_top.core_info[cpu].is_online && in print_results() 152 cpu_top.core_info[cpu].pkg == -1) in print_results() 156 printf("%4d|", cpu_top.core_info[cpu].pkg); in print_results() 158 printf("%4d|", cpu_top.core_info[cpu].core); in print_results() 160 printf("%4d|", cpu_top.core_info[cpu].cpu); in print_results() 174 cpu_top.core_info[cpu].cpu); in print_results() 183 cpu_top.core_info[cpu].cpu); in print_results() 202 if (!cpu_top.core_info[cpu].is_online && in print_results() 203 cpu_top.core_info[cpu].pkg != -1) { in print_results() [all …]
|
/Linux-v4.19/arch/powerpc/kvm/ |
D | book3s_hv.c | 2431 struct core_info { struct 2445 static void init_core_info(struct core_info *cip, struct kvmppc_vcore *vc) in init_core_info() argument 2488 static bool can_dynamic_split(struct kvmppc_vcore *vc, struct core_info *cip) in can_dynamic_split() 2522 static bool can_piggyback(struct kvmppc_vcore *pvc, struct core_info *cip, in can_piggyback() 2550 static void collect_piggybacks(struct core_info *cip, int target_threads) in collect_piggybacks() 2581 static bool recheck_signals(struct core_info *cip) in recheck_signals() 2718 struct core_info core_info; in kvmppc_run_core() local 2780 init_core_info(&core_info, vc); in kvmppc_run_core() 2786 collect_piggybacks(&core_info, target_threads); in kvmppc_run_core() 2795 for (sub = 0; sub < core_info.n_subcores; ++sub) in kvmppc_run_core() [all …]
|