Explorar o código

MIPS: Print the actual detected I-cache associativity on bootup.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle %!s(int64=16) %!d(string=hai) anos
pai
achega
7fc7316aa8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/mips/mm/c-r4k.c

+ 1 - 1
arch/mips/mm/c-r4k.c

@@ -1041,7 +1041,7 @@ static void __cpuinit probe_pcache(void)
 
 
 	printk("Primary instruction cache %ldkB, %s, %s, linesize %d bytes.\n",
 	printk("Primary instruction cache %ldkB, %s, %s, linesize %d bytes.\n",
 	       icache_size >> 10,
 	       icache_size >> 10,
-	       cpu_has_vtag_icache ? "VIVT" : "VIPT",
+	       c->icache.flags & MIPS_CACHE_VTAG ? "VIVT" : "VIPT",
 	       way_string[c->icache.ways], c->icache.linesz);
 	       way_string[c->icache.ways], c->icache.linesz);
 
 
 	printk("Primary data cache %ldkB, %s, %s, %s, linesize %d bytes\n",
 	printk("Primary data cache %ldkB, %s, %s, %s, linesize %d bytes\n",