projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8904976
)
microblaze: Standardise cpuinfo output for cache policy
author
John A. Williams
<john.williams@petalogix.com>
Tue, 24 May 2011 08:59:45 +0000
(18:59 +1000)
committer
Michal 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
patch
|
blob
|
history
diff --git
a/arch/microblaze/kernel/cpu/mb.c
b/arch/microblaze/kernel/cpu/mb.c
index 0afebaebb5b5eb34aca1408df2ff3d6993a79f4e..7b5dca7ed39db70779c216afcaf2196e45412217 100644
(file)
--- 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\t
write-back\n");
+ count += seq_printf(m, "write-back\n");
else
- count += seq_printf(m, "
\t\t
write-through\n");
+ count += seq_printf(m, "write-through\n");
} else
count += seq_printf(m, "Dcache:\t\tno\n");