]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/smp: Rename init_thread_group_l1_cache_map() to make it generic
authorGautham R. Shenoy <ego@linux.vnet.ibm.com>
Thu, 10 Dec 2020 10:38:57 +0000 (16:08 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Dec 2020 13:10:25 +0000 (00:10 +1100)
commitf7d39cce230431d8fc64dc229f8f4e9ad866c375
tree7a3cdcc79b02c37da3b13584bac60bcb45ad809e
parent4531ab5ad9fa0f9190533d1a8daad56cdc0aad95
powerpc/smp: Rename init_thread_group_l1_cache_map() to make it generic

init_thread_group_l1_cache_map() initializes the per-cpu cpumask
thread_group_l1_cache_map with the core-siblings which share L1 cache
with the CPU. Make this function generic to the cache-property (L1 or
L2) and update a suitable mask. This is a preparatory patch for the
next patch where we will introduce discovery of thread-groups that
share L2-cache.

No functional change.

Signed-off-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1607596739-32439-4-git-send-email-ego@linux.vnet.ibm.com
arch/powerpc/kernel/smp.c