Lines Matching refs:cpus_to_remove
642 static int find_dlpar_cpus_to_remove(u32 *cpu_drcs, int cpus_to_remove) in find_dlpar_cpus_to_remove() argument
654 if (cpus_found > cpus_to_remove) { in find_dlpar_cpus_to_remove()
672 if (cpus_found < cpus_to_remove) { in find_dlpar_cpus_to_remove()
674 cpus_found, cpus_to_remove); in find_dlpar_cpus_to_remove()
675 } else if (cpus_found == cpus_to_remove) { in find_dlpar_cpus_to_remove()
682 static int dlpar_cpu_remove_by_count(u32 cpus_to_remove) in dlpar_cpu_remove_by_count() argument
689 pr_debug("Attempting to hot-remove %d CPUs\n", cpus_to_remove); in dlpar_cpu_remove_by_count()
691 cpu_drcs = kcalloc(cpus_to_remove, sizeof(*cpu_drcs), GFP_KERNEL); in dlpar_cpu_remove_by_count()
695 cpus_found = find_dlpar_cpus_to_remove(cpu_drcs, cpus_to_remove); in dlpar_cpu_remove_by_count()
696 if (cpus_found <= cpus_to_remove) { in dlpar_cpu_remove_by_count()
701 for (i = 0; i < cpus_to_remove; i++) { in dlpar_cpu_remove_by_count()
709 if (cpus_removed != cpus_to_remove) { in dlpar_cpu_remove_by_count()