Skip to content

Commit

Permalink
microblaze: cpuinfo shows cache line length
Browse files Browse the repository at this point in the history
Show cache line length in /proc/cpuinfo.

Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
michalsimek committed May 6, 2010
1 parent de925d9 commit 77543ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions arch/microblaze/kernel/cpu/mb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77543ce

Please sign in to comment.