]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/smp: Add cpu_l2_cache_map
authorOliver O'Halloran <oohall@gmail.com>
Thu, 29 Jun 2017 07:12:55 +0000 (17:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 31 Aug 2017 04:26:56 +0000 (14:26 +1000)
commita37c93827a17a57c7c3aa503b3ac2919c9e96216
tree8baf43a855645c57565231e16b1bd36612103234
parentf3bfa8bca1837c86ce89801e57d3c31f4f3de378
powerpc/smp: Add cpu_l2_cache_map

We want to add an extra level to the CPU scheduler topology to account
for cores which share a cache. To do this we need to build a cpumask
for each CPU that indicates which CPUs share this cache to use as an
input to the scheduler.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/smp.c