powerpc/kexec: make the update_cpus_node() function public
authorSourabh Jain <sourabhjain@linux.ibm.com>
Tue, 26 Mar 2024 05:54:11 +0000 (11:24 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 23 Apr 2024 04:59:51 +0000 (14:59 +1000)
commit0857beff9c1ec8bb421a8b7a721da0f34cc886c0
tree9848596c9b26cacc20a86ac121d3b12b3a83fa72
parentf5f0da5a7b18fab383bac92044fd8f4f288c9d38
powerpc/kexec: make the update_cpus_node() function public

Move the update_cpus_node() from kexec/{file_load_64.c => core_64.c}
to allow other kexec components to use it.

Later in the series, this function is used for in-kernel updates
to the kdump image during CPU/memory hotplug or online/offline events for
both kexec_load and kexec_file_load syscalls.

No functional changes are intended.

Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Acked-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240326055413.186534-5-sourabhjain@linux.ibm.com
arch/powerpc/include/asm/kexec.h
arch/powerpc/kexec/core_64.c
arch/powerpc/kexec/file_load_64.c