]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: l2c: only unlock caches if NS_LOCKDOWN bit is set
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 15 May 2015 10:51:51 +0000 (11:51 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 15 May 2015 19:30:12 +0000 (20:30 +0100)
commit8d1e44ca207be010f772159e209457b40f8fff8a
tree22d4cf07324179939951ed6c08fb8e7118a87962
parent4bae910170ee1194be6199b11d9d37e037d2ff60
ARM: l2c: only unlock caches if NS_LOCKDOWN bit is set

Some L2C caches have a bit which allows non-secure software to control
the cache lockdown.  Some platforms are unable to set this bit.  To
avoid receiving an abort while trying to unlock the cache lines, check
the state of this bit before unlocking.  We do this by providing a new
method in the l2c_init_data to perform the unlocking.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c