sh: rework memory limits to work with LMB.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 10 May 2010 11:17:25 +0000 (20:17 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 10 May 2010 11:17:25 +0000 (20:17 +0900)
commit5e2ff328c0668794ff408a4632f5b8a62827571f
tree53a35de722c44c6739541d6b9ae74970520191f9
parent19d8f84f86af867abee174be8bf1e4941a59143d
sh: rework memory limits to work with LMB.

This reworks the memory limit handling to tie in through the available
LMB infrastructure. This requires a bit of reordering as we need to have
all of the LMB reservations taken care of prior to establishing the
limits.

While we're at it, the crash kernel reservation semantics are reworked
so that we allocate from the bottom up and reduce the risk of having
to disable the memory limit due to a clash with the crash kernel
reservation.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/page.h
arch/sh/kernel/machine_kexec.c
arch/sh/kernel/setup.c