• Haren Myneni's avatar
    powerpc/pseries: Update dynamic cache nodes for suspend/resume operation · 6b36ba84
    Haren Myneni authored
    pHyp can change cache nodes for suspend/resume operation. Currently the
    device tree is updated by drmgr in userspace after all non boot CPUs are
    enabled. Hence, we do not modify the cache list based on the latest cache
    nodes. Also we do not remove cache entries for the primary CPU.
    
    This patch removes the cache list for the boot CPU, updates the device tree
    before enabling nonboot CPUs and adds cache list for the boot cpu.
    
    This patch also has the side effect that older versions of drmgr will
    perform a second device tree update from userspace. While this is a
    redundant waste of a couple cycles it is harmless since firmware returns the
    same data for the subsequent update-nodes/properties rtas calls.
    Signed-off-by: default avatarHaren Myneni <hbabu@us.ibm.com>
    Signed-off-by: default avatarTyrel Datwyler <tyreld@linux.vnet.ibm.com>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    6b36ba84
suspend.c 6.05 KB