• Jesse Larrew's avatar
    powerpc/pseries: Fix VPHN build errors on non-SMP systems · 39bf990e
    Jesse Larrew authored
    The header asm/hvcall.h was previously included indirectly via
    smp.h. On non-SMP systems, however, these declarations are excluded
    and the build breaks. This is easily fixed by including asm/hvcall.h
    directly.
    
    The VPHN feature is only meaningful on NUMA systems that implement
    the SPLPAR option, so exclude the VPHN code on systems without
    SPLPAR enabled.
    
    Also, expose unmap_cpu_from_node() on systems with SPLPAR enabled,
    even if CONFIG_HOTPLUG_CPU is disabled.
    
    Lastly, map_cpu_to_node() is now needed by VPHN to manipulate the
    node masks after boot time, so remove the __cpuinit annotation to
    fix a section mismatch.
    Signed-off-by: default avatarJesse Larrew <jlarrew@linux.vnet.ibm.com>
    39bf990e
topology.h 3.46 KB