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)
commit2a636a56d2d39676fe85190dec102c7440e24977
tree8baf43a855645c57565231e16b1bd36612103234
parentdf52f6714071c49a1fb1f541d4c4ff929bd4594d
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