projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19a0519
)
ARM: 7820/1: mm: cache-l2x0: Print the cache size in kB
author
Fabio Estevam
<festevam@gmail.com>
Fri, 16 Aug 2013 12:04:32 +0000
(13:04 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Mon, 19 Aug 2013 23:26:06 +0000
(
00:26
+0100)
Currently we have the following output from cache-l2x0:
l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x32070000, Cache size:
1048576
B
Using kB for the cache size can improve readability a bit:
l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x32070000, Cache size: 1024 kB
While at it use pr_info.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mm/cache-l2x0.c
b/arch/arm/mm/cache-l2x0.c
index d70e0aba0c9d9b4a0d10a78c627e159b1bf90d9b..ad4e8825f91e1b3740080c84f77257872ea12580 100644
(file)
--- a/
arch/arm/mm/cache-l2x0.c
+++ b/
arch/arm/mm/cache-l2x0.c
@@
-417,9
+417,9
@@
void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask)
outer_cache.disable = l2x0_disable;
}
- pr
intk(KERN_INFO
"%s cache controller enabled\n", type);
- pr
intk(KERN_INFO "l2x0: %d ways, CACHE_ID 0x%08x, AUX_CTRL 0x%08x, Cache size: %d
B\n",
-
ways, cache_id, aux, l2x0_size
);
+ pr
_info(
"%s cache controller enabled\n", type);
+ pr
_info("l2x0: %d ways, CACHE_ID 0x%08x, AUX_CTRL 0x%08x, Cache size: %d k
B\n",
+
ways, cache_id, aux, l2x0_size >> 10
);
}
#ifdef CONFIG_OF
This page took
0.026027 seconds
and
5
git commands to generate.