diff options
author | Michal Simek <monstr@monstr.eu> | 2009-10-14 11:12:50 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-12-14 08:44:58 +0100 |
commit | e051af576a414b6fcfe6589e99b2357522718050 (patch) | |
tree | abf2fcf3152485cb95ba7dedbcec6cc5f9187b31 /arch/microblaze/kernel/cpu/mb.c | |
parent | microblaze: Fix cache_line_lenght (diff) | |
download | linux-e051af576a414b6fcfe6589e99b2357522718050.tar.xz linux-e051af576a414b6fcfe6589e99b2357522718050.zip |
microblaze: Extend cpuinfo for support write-back caches
There is missing checking agains PVR but this is not important
for now. There are some missing checking too.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/cpu/mb.c')
-rw-r--r-- | arch/microblaze/kernel/cpu/mb.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/microblaze/kernel/cpu/mb.c b/arch/microblaze/kernel/cpu/mb.c index 4dcfccdbc364..0c912b2a8e03 100644 --- a/arch/microblaze/kernel/cpu/mb.c +++ b/arch/microblaze/kernel/cpu/mb.c @@ -103,11 +103,15 @@ static int show_cpuinfo(struct seq_file *m, void *v) else count += seq_printf(m, "Icache:\t\tno\n"); - if (cpuinfo.use_dcache) + if (cpuinfo.use_dcache) { count += seq_printf(m, "Dcache:\t\t%ukB\n", cpuinfo.dcache_size >> 10); - else + if (cpuinfo.dcache_wb) + count += seq_printf(m, "\t\twrite-back\n"); + else + count += seq_printf(m, "\t\twrite-through\n"); + } else count += seq_printf(m, "Dcache:\t\tno\n"); count += seq_printf(m, |