diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-03-19 10:07:12 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-05-29 19:50:37 -0400 |
commit | 314e47b7b651db93bbdeb83f4244240ff5d33baa (patch) | |
tree | 1876391d89b184f221f47afe1cfd570a488da193 /arch/arm/mm/cache-l2x0.c | |
parent | 678ea28b7c3cc9a7196192dc77dfc13513db3d5f (diff) |
ARM: l2c: print a warning with L2C-310 caches if the cache size is modified
As we have now removed all instances of the L2C-310 having its cache
size "modified" via platform/SoC code, discourage new cases showing
up by printing a warning.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index ae6e71b3295c..415efc3bee0d 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c | |||
@@ -765,6 +765,8 @@ static void __init __l2c_init(const struct l2c_init_data *data, | |||
765 | /* Determine the number of ways */ | 765 | /* Determine the number of ways */ |
766 | switch (cache_id & L2X0_CACHE_ID_PART_MASK) { | 766 | switch (cache_id & L2X0_CACHE_ID_PART_MASK) { |
767 | case L2X0_CACHE_ID_PART_L310: | 767 | case L2X0_CACHE_ID_PART_L310: |
768 | if ((aux_val | ~aux_mask) & (L2C_AUX_CTRL_WAY_SIZE_MASK | L310_AUX_CTRL_ASSOCIATIVITY_16)) | ||
769 | pr_warn("L2C: DT/platform tries to modify or specify cache size\n"); | ||
768 | if (aux & (1 << 16)) | 770 | if (aux & (1 << 16)) |
769 | ways = 16; | 771 | ways = 16; |
770 | else | 772 | else |