ARM: mm: cleanup checks for membank overlap with vmalloc area
authorCyril Chemparathy <cyril@ti.com>
Fri, 20 Jul 2012 16:24:45 +0000 (12:24 -0400)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:22:56 +0000 (13:22 -0700)
commit8b41998b64b99860077480cd89d75661fbac2cbe
tree91b67fda262dd9d147a0047f1189d304d4a38efb
parent3130b4902544c68a3f040357b00347d7c65967f6
ARM: mm: cleanup checks for membank overlap with vmalloc area

On Keystone platforms, physical memory is entirely outside the 32-bit
addressible range.  Therefore, the (bank->start > ULONG_MAX) check below marks
the entire system memory as highmem, and this causes unpleasentness all over.

This patch eliminates the extra bank start check (against ULONG_MAX) by
checking bank->start against the physical address corresponding to vmalloc_min
instead.

In the process, this patch also cleans up parts of the highmem sanity check
code by removing what has now become a redundant check for banks that entirely
overlap with the vmalloc range.

Change-Id: I5dc3a7808f4a554b098b6333786af02647eab7fe
Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/195675
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Adeel Raza <araza@nvidia.com>
arch/arm/mm/mmu.c