Lines Matching refs:max_cpu_num
402 int max_cpu_num; member
2584 for (i = 0; i < topo.max_cpu_num + 1; ++i) { in free_fd_percpu()
2629 for (i = 0; i <= topo.max_cpu_num; ++i) { in free_all_buffers()
2691 for (cpu = 0; cpu <= topo.max_cpu_num; ++cpu) in set_node_data()
2697 for (cpu = 0; cpu <= topo.max_cpu_num; ++cpu) { in set_node_data()
2710 for (cpux = cpu; cpux <= topo.max_cpu_num; cpux++) { in set_node_data()
2721 if (cpu_count >= topo.max_cpu_num) in set_node_data()
2733 for (i = 0; i <= topo.max_cpu_num; i++) { in get_physical_node_id()
2752 int offset = topo.max_cpu_num + 1; in get_thread_siblings()
2756 thiscpu->put_ids = CPU_ALLOC((topo.max_cpu_num + 1)); in get_thread_siblings()
2762 size = CPU_ALLOC_SIZE((topo.max_cpu_num + 1)); in get_thread_siblings()
2903 topo.max_cpu_num = 0; in set_max_cpu_num()
2905 topo.max_cpu_num += BITMASK_SIZE; in set_max_cpu_num()
2907 topo.max_cpu_num--; /* 0 based */ in set_max_cpu_num()
2956 if (cpu_number > topo.max_cpu_num) { in snapshot_proc_interrupts()
2957 warn("/proc/interrupts: cpu%d: > %d", cpu_number, topo.max_cpu_num); in snapshot_proc_interrupts()
3281 per_cpu_msr_sum = calloc(topo.max_cpu_num + 1, sizeof(struct msr_sum_array)); in msr_sum_record()
5360 fprintf(outf, "num_cpus %d max_cpu_num %d\n", topo.num_cpus, topo.max_cpu_num); in topology_probe()
5362 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology)); in topology_probe()
5369 cpu_present_set = CPU_ALLOC((topo.max_cpu_num + 1)); in topology_probe()
5372 cpu_present_setsize = CPU_ALLOC_SIZE((topo.max_cpu_num + 1)); in topology_probe()
5388 cpu_affinity_set = CPU_ALLOC((topo.max_cpu_num + 1)); in topology_probe()
5391 cpu_affinity_setsize = CPU_ALLOC_SIZE((topo.max_cpu_num + 1)); in topology_probe()
5400 for (i = 0; i <= topo.max_cpu_num; ++i) { in topology_probe()
5473 for (i = 0; i <= topo.max_cpu_num; ++i) { in topology_probe()
5576 fd_percpu = calloc(topo.max_cpu_num + 1, sizeof(int)); in allocate_fd_percpu()
5586 irqs_per_cpu = calloc(topo.max_cpu_num + 1, sizeof(int)); in allocate_irq_buffers()
5588 err(-1, "calloc %d", topo.max_cpu_num + 1); in allocate_irq_buffers()