kdump: Allow shrinking of kdump region to be overridden
authorAnton Blanchard <anton@samba.org>
Wed, 25 Aug 2010 00:22:58 +0000 (10:22 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 1 Apr 2011 05:14:30 +0000 (16:14 +1100)
commitc0bb9e45f3a7f67fc358946727bc3d5f23d0f55d
tree55b320cd26722eb6e201110b4aceddfa15983722
parent76d479a7caff58b1e5f31d80805f7f65f9177696
kdump: Allow shrinking of kdump region to be overridden

On ppc64 the crashkernel region almost always overlaps an area of firmware.
This works fine except when using the sysfs interface to reduce the kdump
region. If we free the firmware area we are guaranteed to crash.

Rename free_reserved_phys_range to crash_free_reserved_phys_range and make
it a weak function so we can override it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
include/linux/kexec.h
kernel/kexec.c