Home
last modified time | relevance | path

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

/arch/powerpc/platforms/pseries/
Dhotplug-cpu.c580 static int find_dlpar_cpus_to_remove(u32 *cpu_drcs, int cpus_to_remove) in find_dlpar_cpus_to_remove() argument
592 if (cpus_found > cpus_to_remove) { in find_dlpar_cpus_to_remove()
610 if (cpus_found < cpus_to_remove) { in find_dlpar_cpus_to_remove()
612 cpus_found, cpus_to_remove); in find_dlpar_cpus_to_remove()
613 } else if (cpus_found == cpus_to_remove) { in find_dlpar_cpus_to_remove()
620 static int dlpar_cpu_remove_by_count(u32 cpus_to_remove) in dlpar_cpu_remove_by_count() argument
627 pr_debug("Attempting to hot-remove %d CPUs\n", cpus_to_remove); in dlpar_cpu_remove_by_count()
629 cpu_drcs = kcalloc(cpus_to_remove, sizeof(*cpu_drcs), GFP_KERNEL); in dlpar_cpu_remove_by_count()
633 cpus_found = find_dlpar_cpus_to_remove(cpu_drcs, cpus_to_remove); in dlpar_cpu_remove_by_count()
634 if (cpus_found <= cpus_to_remove) { in dlpar_cpu_remove_by_count()
[all …]