Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/pseries/hibernation: remove redundant cacheinfo update

Partitions with cache nodes in the device tree can encounter the
following warning on resume:

CPU 0 already accounted in PowerPC,POWER9@0(Data)
WARNING: CPU: 0 PID: 3177 at arch/powerpc/kernel/cacheinfo.c:197 cacheinfo_cpu_online+0x640/0x820

These calls to cacheinfo_cpu_offline/online have been redundant since
commit e610a466d16a ("powerpc/pseries/mobility: rebuild cacheinfo
hierarchy post-migration").

Fixes: e610a466d16a ("powerpc/pseries/mobility: rebuild cacheinfo hierarchy post-migration")
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201207215200.1785968-25-nathanl@linux.ibm.com

authored by

Nathan Lynch and committed by
Michael Ellerman
b8664594 1b248817

-3
-3
arch/powerpc/platforms/pseries/suspend.c
··· 13 13 #include <asm/mmu.h> 14 14 #include <asm/rtas.h> 15 15 #include <asm/topology.h> 16 - #include "../../kernel/cacheinfo.h" 17 16 18 17 static struct device suspend_dev; 19 18 static DECLARE_COMPLETION(suspend_work); ··· 62 63 * Update configuration which can be modified based on device tree 63 64 * changes during resume. 64 65 */ 65 - cacheinfo_cpu_offline(smp_processor_id()); 66 66 post_mobility_fixup(); 67 - cacheinfo_cpu_online(smp_processor_id()); 68 67 } 69 68 70 69 /**