microblaze: Standardise cpuinfo output for cache policy
authorJohn A. Williams <john.williams@petalogix.com>
Tue, 24 May 2011 08:59:45 +0000 (18:59 +1000)
committerMichal Simek <monstr@monstr.eu>
Mon, 25 Jul 2011 07:13:43 +0000 (09:13 +0200)
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>
arch/microblaze/kernel/cpu/mb.c

index 0afebaebb5b5eb34aca1408df2ff3d6993a79f4e..7b5dca7ed39db70779c216afcaf2196e45412217 100644 (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");