Searched refs:max_cpu_num (Results 1 - 3 of 3) sorted by relevance

/linux-master/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c70 int max_cpu_num; variable
369 for (cpu = 0; cpu <= max_cpu_num; ++cpu) {
385 cpu_selected_set = CPU_ALLOC((max_cpu_num + 1));
406 if (cpu > max_cpu_num)
407 errx(1, "Requested cpu%d exceeds max cpu%d", cpu, max_cpu_num);
416 for (cpu = 0; cpu <= max_cpu_num; cpu += 1) {
426 for (cpu = 0; cpu <= max_cpu_num; cpu += 2) {
437 for (cpu = 1; cpu <= max_cpu_num; cpu += 2) {
449 if (cpu > max_cpu_num)
450 errx(1, "Requested cpu%d exceeds max cpu%d", cpu, max_cpu_num);
[all...]
/linux-master/tools/perf/util/
H A Dcpumap.c17 static struct perf_cpu max_cpu_num; variable in typeref:struct:perf_cpu
435 max_cpu_num.cpu = 4096;
449 ret = get_max_num(path, &max_cpu_num.cpu);
464 pr_err("Failed to read max cpus, using default of %d\n", max_cpu_num.cpu);
505 if (unlikely(!max_cpu_num.cpu))
508 return max_cpu_num;
537 cpunode_map = calloc(max_cpu_num.cpu, sizeof(int));
543 for (i = 0; i < max_cpu_num.cpu; i++)
/linux-master/tools/power/x86/turbostat/
H A Dturbostat.c1417 int max_cpu_num; member in struct:topo_params
4136 for (i = 0; i < topo.max_cpu_num + 1; ++i) {
4152 for (i = 0; i < topo.max_cpu_num + 1; ++i) {
4169 for (int i = 0; i < topo.max_cpu_num + 1; ++i) {
4241 for (i = 0; i <= topo.max_cpu_num; ++i) {
4302 for (cpu = 0; cpu <= topo.max_cpu_num; ++cpu)
4308 for (cpu = 0; cpu <= topo.max_cpu_num; ++cpu) {
4321 for (cpux = cpu; cpux <= topo.max_cpu_num; cpux++) {
4331 if (cpu_count >= topo.max_cpu_num)
4343 for (i = 0; i <= topo.max_cpu_num;
[all...]

Completed in 139 milliseconds