Home
last modified time | relevance | path

Searched refs:cpus_to_remove (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/arch/powerpc/platforms/pseries/
Dhotplug-cpu.c642 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()
[all …]