diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-03-16 09:14:38 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-05-29 19:47:23 -0400 |
commit | 1f1d5b745a4617a2cb2ffd8f4a9bc3be664cfc98 (patch) | |
tree | 5b4525693a2f162fb39a2f1f245b16ea2c9bb33d /arch/arm/include/asm/outercache.h | |
parent | bc4f94d85cad6035d02d2bed1b27f9bea7e7b6e6 (diff) |
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>
Diffstat (limited to 'arch/arm/include/asm/outercache.h')
-rw-r--r-- | arch/arm/include/asm/outercache.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/include/asm/outercache.h b/arch/arm/include/asm/outercache.h index 2615b3d9e807..e96f194bf3d4 100644 --- a/arch/arm/include/asm/outercache.h +++ b/arch/arm/include/asm/outercache.h | |||
@@ -96,11 +96,7 @@ static inline void outer_flush_all(void) | |||
96 | * cache is pushed out to lower levels of system memory. The note and | 96 | * cache is pushed out to lower levels of system memory. The note and |
97 | * conditions above concerning outer_flush_all() applies here. | 97 | * conditions above concerning outer_flush_all() applies here. |
98 | */ | 98 | */ |
99 | static inline void outer_disable(void) | 99 | extern void outer_disable(void); |
100 | { | ||
101 | if (outer_cache.disable) | ||
102 | outer_cache.disable(); | ||
103 | } | ||
104 | 100 | ||
105 | /** | 101 | /** |
106 | * outer_resume - restore the cache configuration and re-enable outer cache | 102 | * outer_resume - restore the cache configuration and re-enable outer cache |