forked from luck/tmp_suning_uos_patched
microblaze: cpuinfo shows cache line length
Show cache line length in /proc/cpuinfo. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
de925d9d3b
commit
77543cebab
@ -98,15 +98,17 @@ static int show_cpuinfo(struct seq_file *m, void *v)
|
|||||||
|
|
||||||
if (cpuinfo.use_icache)
|
if (cpuinfo.use_icache)
|
||||||
count += seq_printf(m,
|
count += seq_printf(m,
|
||||||
"Icache:\t\t%ukB\n",
|
"Icache:\t\t%ukB\tline length:\t%dB\n",
|
||||||
cpuinfo.icache_size >> 10);
|
cpuinfo.icache_size >> 10,
|
||||||
|
cpuinfo.icache_line_length);
|
||||||
else
|
else
|
||||||
count += seq_printf(m, "Icache:\t\tno\n");
|
count += seq_printf(m, "Icache:\t\tno\n");
|
||||||
|
|
||||||
if (cpuinfo.use_dcache) {
|
if (cpuinfo.use_dcache) {
|
||||||
count += seq_printf(m,
|
count += seq_printf(m,
|
||||||
"Dcache:\t\t%ukB\n",
|
"Dcache:\t\t%ukB\tline length:\t%dB\n",
|
||||||
cpuinfo.dcache_size >> 10);
|
cpuinfo.dcache_size >> 10,
|
||||||
|
cpuinfo.dcache_line_length);
|
||||||
if (cpuinfo.dcache_wb)
|
if (cpuinfo.dcache_wb)
|
||||||
count += seq_printf(m, "\t\twrite-back\n");
|
count += seq_printf(m, "\t\twrite-back\n");
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user