sh: kexec: Register crashk_res
authorSimon Horman <horms@verge.net.au>
Fri, 2 Sep 2011 03:47:12 +0000 (03:47 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 5 Sep 2011 04:10:50 +0000 (13:10 +0900)
commit41309b7a22805f1650c600723d729af453d52719
treee9c1b4734136e3028e6ae41a5aa9fc04c647b2e3
parent9e79e3e9dd9672b37ac9412e9a926714306551fe
sh: kexec: Register crashk_res

Register crashk_res so that it can be used by kexec-tools
via /proc/iomem.

The crash kernel resource needs to be requested the same as the
other kernel resources due to the fact that it's handled during
the common path for adding new memory ranges, so it's added in to
__add_active_range() with the others. This ensures that the crash
kernel is properly reserved regardless of which memory range it's
placed in.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/setup.c