[PATCH] Kexec / Kdump: Unify elf note code
The elf note saving code is currently duplicated over several architectures. This cleanup patch simply adds code to a common file and then replaces the arch-specific code with calls to the newly added code. The only drawback with this approach is that s390 doesn't fully support kexec-on-panic which for that arch leads to introduction of unused code. Signed-off-by:Magnus Damm <magnus@valinux.co.jp> Cc: Vivek Goyal <vgoyal@in.ibm.com> Cc: Andi Kleen <ak@suse.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- arch/i386/kernel/crash.c 2 additions, 64 deletionsarch/i386/kernel/crash.c
- arch/powerpc/kernel/crash.c 2 additions, 57 deletionsarch/powerpc/kernel/crash.c
- arch/x86_64/kernel/crash.c 2 additions, 67 deletionsarch/x86_64/kernel/crash.c
- include/linux/kexec.h 1 addition, 0 deletionsinclude/linux/kexec.h
- kernel/kexec.c 56 additions, 0 deletionskernel/kexec.c
Loading
Please register or sign in to comment