Commit 95ce618f85a86a7383c1a3e39278be3de84b1b99
Committed by
Michal Simek
1 parent
8904976e8c
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff
arch/microblaze/kernel/cpu/mb.c
... | ... | @@ -114,10 +114,11 @@ |
114 | 114 | "Dcache:\t\t%ukB\tline length:\t%dB\n", |
115 | 115 | cpuinfo.dcache_size >> 10, |
116 | 116 | cpuinfo.dcache_line_length); |
117 | + seq_printf(m, "Dcache-Policy:\t"); | |
117 | 118 | if (cpuinfo.dcache_wb) |
118 | - count += seq_printf(m, "\t\twrite-back\n"); | |
119 | + count += seq_printf(m, "write-back\n"); | |
119 | 120 | else |
120 | - count += seq_printf(m, "\t\twrite-through\n"); | |
121 | + count += seq_printf(m, "write-through\n"); | |
121 | 122 | } else |
122 | 123 | count += seq_printf(m, "Dcache:\t\tno\n"); |
123 | 124 |