diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-03-15 12:48:14 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-05-29 19:47:39 -0400 |
commit | 83841fe1fb0c4316af89ab85d3528702724a33f4 (patch) | |
tree | 4c60c444906a5636067b19cc8f5fbf3fe7d7bf5b /arch/arm/mm/cache-l2x0.c | |
parent | df5dd4c6e27081bce2c68cdc2e57a93ea998b63e (diff) |
ARM: l2c: rename cache_wait_way()
cache_wait_way() is actually used to wait for a particular mask to
report clear; it's not really got much to do with cache ways at all.
Indeed, it gets used to wait for the C bit to clear on older caches.
Rename this with a more generic function name which better reflects
its purpose: l2c_wait_mask().
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/cache-l2x0.c')
-rw-r--r-- | arch/arm/mm/cache-l2x0.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index 1c3a23318f53..29ee7f692801 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c | |||
@@ -53,7 +53,7 @@ static bool of_init = false; | |||
53 | /* | 53 | /* |
54 | * Common code for all cache controllers. | 54 | * Common code for all cache controllers. |
55 | */ | 55 | */ |
56 | static inline void cache_wait_way(void __iomem *reg, unsigned long mask) | 56 | static inline void l2c_wait_mask(void __iomem *reg, unsigned long mask) |
57 | { | 57 | { |
58 | /* wait for cache operation by line or way to complete */ | 58 | /* wait for cache operation by line or way to complete */ |
59 | while (readl_relaxed(reg) & mask) | 59 | while (readl_relaxed(reg) & mask) |
@@ -73,7 +73,7 @@ static inline void l2c_set_debug(void __iomem *base, unsigned long val) | |||
73 | static void __l2c_op_way(void __iomem *reg) | 73 | static void __l2c_op_way(void __iomem *reg) |
74 | { | 74 | { |
75 | writel_relaxed(l2x0_way_mask, reg); | 75 | writel_relaxed(l2x0_way_mask, reg); |
76 | cache_wait_way(reg, l2x0_way_mask); | 76 | l2c_wait_mask(reg, l2x0_way_mask); |
77 | } | 77 | } |
78 | 78 | ||
79 | static inline void l2c_unlock(void __iomem *base, unsigned num) | 79 | static inline void l2c_unlock(void __iomem *base, unsigned num) |
@@ -94,7 +94,7 @@ static inline void cache_wait(void __iomem *reg, unsigned long mask) | |||
94 | /* cache operations by line are atomic on PL310 */ | 94 | /* cache operations by line are atomic on PL310 */ |
95 | } | 95 | } |
96 | #else | 96 | #else |
97 | #define cache_wait cache_wait_way | 97 | #define cache_wait l2c_wait_mask |
98 | #endif | 98 | #endif |
99 | 99 | ||
100 | static inline void cache_sync(void) | 100 | static inline void cache_sync(void) |