microblaze: Extend cpuinfo for support write-back caches

There is missing checking agains PVR but this is not important
for now. There are some missing checking too.

Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
Michal Simek
2009-10-14 11:12:50 +02:00
parent 44e4e196a9
commit e051af576a
3 changed files with 8 additions and 2 deletions

View File

@@ -103,11 +103,15 @@ static int show_cpuinfo(struct seq_file *m, void *v)
else
count += seq_printf(m, "Icache:\t\tno\n");
if (cpuinfo.use_dcache)
if (cpuinfo.use_dcache) {
count += seq_printf(m,
"Dcache:\t\t%ukB\n",
cpuinfo.dcache_size >> 10);
else
if (cpuinfo.dcache_wb)
count += seq_printf(m, "\t\twrite-back\n");
else
count += seq_printf(m, "\t\twrite-through\n");
} else
count += seq_printf(m, "Dcache:\t\tno\n");
count += seq_printf(m,