aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@sifive.com>2018-07-24 20:17:14 -0400
committerPalmer Dabbelt <palmer@sifive.com>2018-10-22 20:37:41 -0400
commit1760debb51f73ed3e089c8d4e847554901dee4bb (patch)
tree9513702413d63d775e848257dfe76d3a84b6a7b9
parent84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d (diff)
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. Reviewed-by: Jeremy Linton <jeremy.linton@arm.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
-rw-r--r--arch/riscv/kernel/cacheinfo.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/riscv/kernel/cacheinfo.c b/arch/riscv/kernel/cacheinfo.c
index 0bc86e5f8f3f..cb35ffd8ec6b 100644
--- a/arch/riscv/kernel/cacheinfo.c
+++ b/arch/riscv/kernel/cacheinfo.c
@@ -22,13 +22,6 @@ static void ci_leaf_init(struct cacheinfo *this_leaf,
22{ 22{
23 this_leaf->level = level; 23 this_leaf->level = level;
24 this_leaf->type = type; 24 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;
32} 25}
33 26
34static int __init_cache_level(unsigned int cpu) 27static int __init_cache_level(unsigned int cpu)