s390/kexec_file: Unify loader code
s390_image_load and s390_elf_load have the same code to load the different components. Combine this functionality in one shared function. While at it move kexec_file_update_kernel into the new function as well. Signed-off-by:Philipp Rudo <prudo@linux.ibm.com> Signed-off-by:
Martin Schwidefsky <schwidefsky@de.ibm.com>
Showing
- arch/s390/include/asm/kexec.h 3 additions, 7 deletionsarch/s390/include/asm/kexec.h
- arch/s390/kernel/kexec_elf.c 7 additions, 24 deletionsarch/s390/kernel/kexec_elf.c
- arch/s390/kernel/kexec_image.c 8 additions, 29 deletionsarch/s390/kernel/kexec_image.c
- arch/s390/kernel/machine_kexec_file.c 40 additions, 24 deletionsarch/s390/kernel/machine_kexec_file.c
Please register or sign in to comment