File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1562,6 +1562,7 @@ static void probe_vcache(void)
1562
1562
vcache_size = c -> vcache .sets * c -> vcache .ways * c -> vcache .linesz ;
1563
1563
1564
1564
c -> vcache .waybit = 0 ;
1565
+ c -> vcache .waysize = vcache_size / c -> vcache .ways ;
1565
1566
1566
1567
pr_info ("Unified victim cache %ldkB %s, linesize %d bytes.\n" ,
1567
1568
vcache_size >> 10 , way_string [c -> vcache .ways ], c -> vcache .linesz );
@@ -1664,6 +1665,7 @@ static void __init loongson3_sc_init(void)
1664
1665
/* Loongson-3 has 4 cores, 1MB scache for each. scaches are shared */
1665
1666
scache_size *= 4 ;
1666
1667
c -> scache .waybit = 0 ;
1668
+ c -> scache .waysize = scache_size / c -> scache .ways ;
1667
1669
pr_info ("Unified secondary cache %ldkB %s, linesize %d bytes.\n" ,
1668
1670
scache_size >> 10 , way_string [c -> scache .ways ], c -> scache .linesz );
1669
1671
if (scache_size )
You can’t perform that action at this time.
0 commit comments