sh: Reject small mappings for PMB bolting.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 11 May 2010 04:50:29 +0000 (13:50 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 11 May 2010 04:50:29 +0000 (13:50 +0900)
commitdfbca89987b74c34d9b1a2414b0e5ccee65347e0
tree9fc1f978381864f53e81ff7a017d3ddee2dca89c
parent4bc277ac9cae60e11fe2e557e4ea4acb56d3dc9a
sh: Reject small mappings for PMB bolting.

The minimum section size for the PMB is 16M, so just always error
out early if the specified size is too small. This permits us to
unconditionally call in to pmb_bolt_mapping() with variable sizes
without wasting a TLB and cache flush for the range.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/pmb.c