Skip to content

Commit 904c6f6

Browse files
nathanlynchgregkh
authored andcommitted
powerpc/pseries/hibernation: remove redundant cacheinfo update
[ Upstream commit b866459 ] 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 e610a46 ("powerpc/pseries/mobility: rebuild cacheinfo hierarchy post-migration"). Fixes: e610a46 ("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b155175 commit 904c6f6

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎arch/powerpc/platforms/pseries/suspend.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <asm/mmu.h>
1414
#include <asm/rtas.h>
1515
#include <asm/topology.h>
16-
#include "../../kernel/cacheinfo.h"
1716

1817
static u64 stream_id;
1918
static struct device suspend_dev;
@@ -78,9 +77,7 @@ static void pseries_suspend_enable_irqs(void)
7877
* Update configuration which can be modified based on device tree
7978
* changes during resume.
8079
*/
81-
cacheinfo_cpu_offline(smp_processor_id());
8280
post_mobility_fixup();
83-
cacheinfo_cpu_online(smp_processor_id());
8481
}
8582

8683
/**

0 commit comments

Comments
 (0)