Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176122
b: refs/heads/master
c: e051af5
h: refs/heads/master
v: v3
  • Loading branch information
Michal Simek committed Dec 14, 2009
1 parent 188cab6 commit 7254e40
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44e4e196a9b3a703ebe273ffe3fb6cda326fe5d3
refs/heads/master: e051af576a414b6fcfe6589e99b2357522718050
1 change: 1 addition & 0 deletions trunk/arch/microblaze/include/asm/cpuinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ struct cpuinfo {
u32 dcache_write;
u32 dcache_line_length;
u32 dcache_size;
u32 dcache_wb;
unsigned long dcache_base;
unsigned long dcache_high;

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/microblaze/kernel/cpu/cpuinfo-static.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ void __init set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu)
ci->dcache_size = fcpu(cpu, "d-cache-size");
ci->dcache_base = fcpu(cpu, "d-cache-baseaddr");
ci->dcache_high = fcpu(cpu, "d-cache-highaddr");
ci->dcache_wb = fcpu(cpu, "xlnx,dcache-use-writeback");

ci->use_dopb = fcpu(cpu, "xlnx,d-opb");
ci->use_iopb = fcpu(cpu, "xlnx,i-opb");
Expand Down
8 changes: 6 additions & 2 deletions trunk/arch/microblaze/kernel/cpu/mb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7254e40

Please sign in to comment.