kexec_file, x86: move re-factored code to generic side
authorAKASHI Takahiro <[email protected]>
Fri, 13 Apr 2018 22:36:06 +0000 (15:36 -0700)
committerLinus Torvalds <[email protected]>
Sat, 14 Apr 2018 00:10:27 +0000 (17:10 -0700)
commitbabac4a84a88842bec477a5bdada1460f3bc374c
tree88e84c21942b051c2dfe941cadb8d8cdb4aa7ec0
parenteb7dae947ef5c50e0121f673fcb43ca3583e5849
kexec_file, x86: move re-factored code to generic side

In the previous patches, commonly-used routines, exclude_mem_range() and
prepare_elf64_headers(), were carved out.  Now place them in kexec
common code.  A prefix "crash_" is given to each of their names to avoid
possible name collisions.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: AKASHI Takahiro <[email protected]>
Acked-by: Dave Young <[email protected]>
Tested-by: Dave Young <[email protected]>
Cc: Vivek Goyal <[email protected]>
Cc: Baoquan He <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/x86/kernel/crash.c
include/linux/kexec.h
kernel/kexec_file.c