Skip to content

Commit 77543ce

Browse files
committed
microblaze: cpuinfo shows cache line length
Show cache line length in /proc/cpuinfo. Signed-off-by: Michal Simek <monstr@monstr.eu>
1 parent de925d9 commit 77543ce

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • arch/microblaze/kernel/cpu

‎arch/microblaze/kernel/cpu/mb.c‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,17 @@ static int show_cpuinfo(struct seq_file *m, void *v)
9898

9999
if (cpuinfo.use_icache)
100100
count += seq_printf(m,
101-
"Icache:\t\t%ukB\n",
102-
cpuinfo.icache_size >> 10);
101+
"Icache:\t\t%ukB\tline length:\t%dB\n",
102+
cpuinfo.icache_size >> 10,
103+
cpuinfo.icache_line_length);
103104
else
104105
count += seq_printf(m, "Icache:\t\tno\n");
105106

106107
if (cpuinfo.use_dcache) {
107108
count += seq_printf(m,
108-
"Dcache:\t\t%ukB\n",
109-
cpuinfo.dcache_size >> 10);
109+
"Dcache:\t\t%ukB\tline length:\t%dB\n",
110+
cpuinfo.dcache_size >> 10,
111+
cpuinfo.dcache_line_length);
110112
if (cpuinfo.dcache_wb)
111113
count += seq_printf(m, "\t\twrite-back\n");
112114
else

0 commit comments

Comments
 (0)