cpu_top           131 tools/power/cpupower/lib/cpupower.c int get_cpu_topology(struct cpupower_topology *cpu_top)
cpu_top           135 tools/power/cpupower/lib/cpupower.c 	cpu_top->core_info = malloc(sizeof(struct cpuid_core_info) * cpus);
cpu_top           136 tools/power/cpupower/lib/cpupower.c 	if (cpu_top->core_info == NULL)
cpu_top           138 tools/power/cpupower/lib/cpupower.c 	cpu_top->pkgs = cpu_top->cores = 0;
cpu_top           140 tools/power/cpupower/lib/cpupower.c 		cpu_top->core_info[cpu].cpu = cpu;
cpu_top           141 tools/power/cpupower/lib/cpupower.c 		cpu_top->core_info[cpu].is_online = cpupower_is_cpu_online(cpu);
cpu_top           145 tools/power/cpupower/lib/cpupower.c 			&(cpu_top->core_info[cpu].pkg)) < 0) {
cpu_top           146 tools/power/cpupower/lib/cpupower.c 			cpu_top->core_info[cpu].pkg = -1;
cpu_top           147 tools/power/cpupower/lib/cpupower.c 			cpu_top->core_info[cpu].core = -1;
cpu_top           153 tools/power/cpupower/lib/cpupower.c 			&(cpu_top->core_info[cpu].core)) < 0) {
cpu_top           154 tools/power/cpupower/lib/cpupower.c 			cpu_top->core_info[cpu].pkg = -1;
cpu_top           155 tools/power/cpupower/lib/cpupower.c 			cpu_top->core_info[cpu].core = -1;
cpu_top           160 tools/power/cpupower/lib/cpupower.c 	qsort(cpu_top->core_info, cpus, sizeof(struct cpuid_core_info),
cpu_top           166 tools/power/cpupower/lib/cpupower.c 	last_pkg = cpu_top->core_info[0].pkg;
cpu_top           168 tools/power/cpupower/lib/cpupower.c 		if (cpu_top->core_info[cpu].pkg != last_pkg &&
cpu_top           169 tools/power/cpupower/lib/cpupower.c 				cpu_top->core_info[cpu].pkg != -1) {
cpu_top           171 tools/power/cpupower/lib/cpupower.c 			last_pkg = cpu_top->core_info[cpu].pkg;
cpu_top           172 tools/power/cpupower/lib/cpupower.c 			cpu_top->pkgs++;
cpu_top           175 tools/power/cpupower/lib/cpupower.c 	if (!(cpu_top->core_info[0].pkg == -1))
cpu_top           176 tools/power/cpupower/lib/cpupower.c 		cpu_top->pkgs++;
cpu_top           188 tools/power/cpupower/lib/cpupower.c void cpu_topology_release(struct cpupower_topology cpu_top)
cpu_top           190 tools/power/cpupower/lib/cpupower.c 	free(cpu_top.core_info);
cpu_top            28 tools/power/cpupower/lib/cpupower.h int get_cpu_topology(struct cpupower_topology *cpu_top);
cpu_top            29 tools/power/cpupower/lib/cpupower.h void cpu_topology_release(struct cpupower_topology cpu_top);
cpu_top            41 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c static struct cpupower_topology cpu_top;
cpu_top           149 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	if (!bitmask_isbitset(cpus_chosen, cpu_top.core_info[cpu].cpu))
cpu_top           151 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	if (!cpu_top.core_info[cpu].is_online &&
cpu_top           152 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	    cpu_top.core_info[cpu].pkg == -1)
cpu_top           156 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 		printf("%4d|", cpu_top.core_info[cpu].pkg);
cpu_top           158 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 		printf("%4d|", cpu_top.core_info[cpu].core);
cpu_top           160 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 		printf("%4d|", cpu_top.core_info[cpu].cpu);
cpu_top           174 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 						  cpu_top.core_info[cpu].cpu);
cpu_top           183 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 						  cpu_top.core_info[cpu].cpu);
cpu_top           202 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	if (!cpu_top.core_info[cpu].is_online &&
cpu_top           203 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	    cpu_top.core_info[cpu].pkg != -1) {
cpu_top           394 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	cpu_count = get_cpu_topology(&cpu_top);
cpu_top           400 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	if (!cpu_top.core_info[0].is_online)
cpu_top           438 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	       cpu_top.pkgs, cpu_top.cores, cpu_count);
cpu_top           450 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	if (cpu_top.pkgs > 1)
cpu_top           456 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 		if (cpu_top.pkgs > 1)
cpu_top           465 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	cpu_topology_release(cpu_top);