diff options
author | John A. Williams <john.williams@petalogix.com> | 2011-05-24 10:59:45 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2011-07-25 09:13:43 +0200 |
commit | 95ce618f85a86a7383c1a3e39278be3de84b1b99 (patch) | |
tree | 4bd4ae626ef18cd7c52b6c50d61e7228ed95f86d /arch/microblaze/kernel/cpu | |
parent | microblaze: Unprivileged stream instruction awareness (diff) | |
download | linux-95ce618f85a86a7383c1a3e39278be3de84b1b99.tar.xz linux-95ce618f85a86a7383c1a3e39278be3de84b1b99.zip |
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>
Diffstat (limited to 'arch/microblaze/kernel/cpu')
-rw-r--r-- | arch/microblaze/kernel/cpu/mb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/microblaze/kernel/cpu/mb.c b/arch/microblaze/kernel/cpu/mb.c index 0afebaebb5b5..7b5dca7ed39d 100644 --- a/arch/microblaze/kernel/cpu/mb.c +++ b/arch/microblaze/kernel/cpu/mb.c @@ -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"); |