summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-04-26 13:53:04 +0200
committerMichal Simek <monstr@monstr.eu>2010-05-06 11:21:59 +0200
commit77543cebab7387eab7d482e90018a64d6f2ced1e (patch)
tree327d327ff90ac96acc9b5897f39360356e980fa8 /arch/microblaze
parentde925d9d3b64390ef6363e16e9d6a84d7dd7cee1 (diff)
downloadop-kernel-dev-77543cebab7387eab7d482e90018a64d6f2ced1e.zip
op-kernel-dev-77543cebab7387eab7d482e90018a64d6f2ced1e.tar.gz
microblaze: cpuinfo shows cache line length
Show cache line length in /proc/cpuinfo. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/kernel/cpu/mb.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/microblaze/kernel/cpu/mb.c b/arch/microblaze/kernel/cpu/mb.c
index 0c912b2..4216eb1 100644
--- a/arch/microblaze/kernel/cpu/mb.c
+++ b/arch/microblaze/kernel/cpu/mb.c
@@ -98,15 +98,17 @@ static int show_cpuinfo(struct seq_file *m, void *v)
if (cpuinfo.use_icache)
count += seq_printf(m,
- "Icache:\t\t%ukB\n",
- cpuinfo.icache_size >> 10);
+ "Icache:\t\t%ukB\tline length:\t%dB\n",
+ cpuinfo.icache_size >> 10,
+ cpuinfo.icache_line_length);
else
count += seq_printf(m, "Icache:\t\tno\n");
if (cpuinfo.use_dcache) {
count += seq_printf(m,
- "Dcache:\t\t%ukB\n",
- cpuinfo.dcache_size >> 10);
+ "Dcache:\t\t%ukB\tline length:\t%dB\n",
+ cpuinfo.dcache_size >> 10,
+ cpuinfo.dcache_line_length);
if (cpuinfo.dcache_wb)
count += seq_printf(m, "\t\twrite-back\n");
else
OpenPOWER on IntegriCloud