We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e720f commit b62a030Copy full SHA for b62a030
arch/loongarch/kernel/cacheinfo.c
@@ -51,6 +51,12 @@ static void cache_cpumap_setup(unsigned int cpu)
51
continue;
52
53
sib_leaf = sib_cpu_ci->info_list + index;
54
+ /* SMT cores share all caches */
55
+ if (cpus_are_siblings(i, cpu)) {
56
+ cpumask_set_cpu(cpu, &sib_leaf->shared_cpu_map);
57
+ cpumask_set_cpu(i, &this_leaf->shared_cpu_map);
58
+ }
59
+ /* Node's cores share shared caches */
60
if (cache_leaves_are_shared(this_leaf, sib_leaf)) {
61
cpumask_set_cpu(cpu, &sib_leaf->shared_cpu_map);
62
cpumask_set_cpu(i, &this_leaf->shared_cpu_map);
0 commit comments