lscpu: assume L1d, L1i, L2, L3 for sparc
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
57fee04c14
commit
5c09ab260e
|
@ -357,13 +357,10 @@ static int read_sparc_onecache(struct lscpu_cxt *cxt, struct lscpu_cpu *cpu,
|
||||||
|
|
||||||
static int read_sparc_caches(struct lscpu_cxt *cxt, struct lscpu_cpu *cpu)
|
static int read_sparc_caches(struct lscpu_cxt *cxt, struct lscpu_cpu *cpu)
|
||||||
{
|
{
|
||||||
int i;
|
read_sparc_onecache(cxt, cpu, 1, "Instruction", 'i');
|
||||||
|
read_sparc_onecache(cxt, cpu, 1, "Data", 'd');
|
||||||
for (i = 1; i <= 3; i++) {
|
read_sparc_onecache(cxt, cpu, 2, "Unified", 0);
|
||||||
read_sparc_onecache(cxt, cpu, i, "Instruction", 'i');
|
read_sparc_onecache(cxt, cpu, 2, "Unified", 0);
|
||||||
read_sparc_onecache(cxt, cpu, i, "Data", 'd');
|
|
||||||
read_sparc_onecache(cxt, cpu, i, "Unified", 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue