]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6408/1: omap: Map only available sram memory
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Fri, 24 Sep 2010 06:19:49 +0000 (07:19 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 25 Sep 2010 14:58:40 +0000 (15:58 +0100)
commitecbf7b17f7badc3107e598f0f449ca1106846e88
tree8c425960cc8e2fce8f35a294c00f2c97852696a7
parentc801a922503511a9a2810d4877645d1b48ffe536
ARM: 6408/1: omap: Map only available sram memory

Currently we map 1 MB section while setting up SRAM on OMAPs
Regardless of the actual memory. The physical OCM RAM available
on OMAP SOCs is in order of KBs. This patch maps only available
sram and cleans up some un-necessary cpu_is_xxx checks.

Mapping un-available or non-accessible(secure) memory on the newer ARM
processor is dangerous. Because ARM CPUs can now speculatively prefetch,
we should avoid mapping any no-existing or secure memory.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-omap/sram.c