Lines Matching refs:max_cpu_num
18 static struct perf_cpu max_cpu_num;
485 max_cpu_num.cpu = 4096;
513 max_cpu_num.cpu = max;
533 pr_err("Failed to read max cpus, using default of %d\n", max_cpu_num.cpu);
574 if (unlikely(!max_cpu_num.cpu))
577 return max_cpu_num;
596 /* cpunode_map allocated for max_cpu_num entries; input may be untrusted */
597 if (cpu.cpu < 0 || cpu.cpu >= max_cpu_num.cpu)
610 cpunode_map = calloc(max_cpu_num.cpu, sizeof(int));
616 for (i = 0; i < max_cpu_num.cpu; i++)
667 /* cpunode_map allocated for max_cpu_num entries */
668 if (cpu < (unsigned int)max_cpu_num.cpu)