]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1922a36746ee422dff787fa6a76ba451d83dccbe
tree9fc1f978381864f53e81ff7a017d3ddee2dca89c
parent91e2542f28980aa69d3216f2367d1a81d30a3026
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