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

/linux-4.4.14/drivers/block/drbd/
H A Ddrbd_main.c509 unsigned int *resources_per_cpu, min_index = ~0; drbd_calc_cpu_mask() local
511 resources_per_cpu = kzalloc(nr_cpu_ids * sizeof(*resources_per_cpu), GFP_KERNEL); drbd_calc_cpu_mask()
512 if (resources_per_cpu) { drbd_calc_cpu_mask()
519 resources_per_cpu[cpu]++; drbd_calc_cpu_mask()
523 if (resources_per_cpu[cpu] < min) { for_each_online_cpu()
524 min = resources_per_cpu[cpu]; for_each_online_cpu()
528 kfree(resources_per_cpu);

Completed in 77 milliseconds