• Oliver O'Halloran's avatar
    powerpc/smp: Rework CPU topology construction · df52f671
    Oliver O'Halloran authored
    The CPU scheduler topology is constructed from a number of per-cpu
    cpumasks which describe which sets of logical CPUs are related in some
    fashion. Current code that handles constructing these masks when CPUs
    are hot(un)plugged can be simplified a bit by exploiting the fact that
    the scheduler requires higher levels of the toplogy (e.g package level
    groupings) to be supersets of the lower levels (e.g.  threas in a core).
    This patch reworks the cpumask construction to be simpler and easier to
    extend with extra topology levels.
    Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
    [mpe: Fix CONFIG_HOTPLUG_CPU=n build]
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    df52f671
smp.c 23.4 KB