powerpc/smp: Dynamically build Powerpc topology
authorSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Thu, 14 Dec 2023 18:07:15 +0000 (23:37 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 15 Dec 2023 02:51:34 +0000 (13:51 +1100)
commitc46975715f5a7b941aa09bc0539a8dbe297f308f
treefa58f3ce598264597022c9027bc2fd6b619dfe3f
parent0e93f1c780e8fd315f1262467b7d35eb6f766d2f
powerpc/smp: Dynamically build Powerpc topology

Currently there are four Powerpc specific sched topologies.  These are
all statically defined.  However not all these topologies are used by
all Powerpc systems.

To avoid unnecessary degenerations by the scheduler, masks and flags
are compared. However if the sched topologies are build dynamically then
the code is simpler and there are greater chances of avoiding
degenerations.

Note:
Even X86 builds its sched topologies dynamically and proposed changes
are very similar to the way X86 is building its topologies.

Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231214180720.310852-6-srikar@linux.vnet.ibm.com
arch/powerpc/kernel/smp.c