2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00

microblaze: Standardise cpuinfo output for cache policy

The current cpuinfo output for the cache policy has no leading tag:, making
it difficult to parse.  Add a leaning "Dcache-policy:" tag to this field.

Signed-off-by: John A. Williams <john.williams@petalogix.com>
This commit is contained in:
John A. Williams 2011-05-24 18:59:45 +10:00 committed by Michal Simek
parent 8904976e8c
commit 95ce618f85

View File

@ -114,10 +114,11 @@ static int show_cpuinfo(struct seq_file *m, void *v)
"Dcache:\t\t%ukB\tline length:\t%dB\n",
cpuinfo.dcache_size >> 10,
cpuinfo.dcache_line_length);
seq_printf(m, "Dcache-Policy:\t");
if (cpuinfo.dcache_wb)
count += seq_printf(m, "\t\twrite-back\n");
count += seq_printf(m, "write-back\n");
else
count += seq_printf(m, "\t\twrite-through\n");
count += seq_printf(m, "write-through\n");
} else
count += seq_printf(m, "Dcache:\t\tno\n");