ARM: outer cache: add WARN_ON() to outer_disable()

Add WARN_ON() conditions to outer_disable() to ensure that its
requirements aren't violated.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Russell King
2014-03-16 13:14:38 +00:00
parent bc4f94d85c
commit 1f1d5b745a
3 changed files with 22 additions and 5 deletions

View File

@@ -96,11 +96,7 @@ static inline void outer_flush_all(void)
* cache is pushed out to lower levels of system memory. The note and
* conditions above concerning outer_flush_all() applies here.
*/
static inline void outer_disable(void)
{
if (outer_cache.disable)
outer_cache.disable();
}
extern void outer_disable(void);
/**
* outer_resume - restore the cache configuration and re-enable outer cache