Skip to content

Commit 566d6c4

Browse files
RISC-V: Don't set cacheinfo.{physical_line_partition,attributes}
These are just hard coded in the RISC-V port, which doesn't make any sense. We should probably be setting these from device tree entries when they exist, but for now I think it's saner to just leave them all as their default values. Signed-off-by: Palmer Dabbelt <palmer@sifive.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jeremy Linton <jeremy.linton@arm.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
1 parent 1ed4237 commit 566d6c4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

arch/riscv/kernel/cacheinfo.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ static void ci_leaf_init(struct cacheinfo *this_leaf,
2222
{
2323
this_leaf->level = level;
2424
this_leaf->type = type;
25-
/* not a sector cache */
26-
this_leaf->physical_line_partition = 1;
27-
/* TODO: Add to DTS */
28-
this_leaf->attributes =
29-
CACHE_WRITE_BACK
30-
| CACHE_READ_ALLOCATE
31-
| CACHE_WRITE_ALLOCATE;
3225
}
3326

3427
static int __init_cache_level(unsigned int cpu)

0 commit comments

Comments
 (0)