Skip to content

Commit b866459

Browse files
nathanlynchmpe
authored andcommitted
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 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
1 parent 1b24881 commit b866459

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 struct device suspend_dev;
1918
static DECLARE_COMPLETION(suspend_work);
@@ -63,9 +62,7 @@ static void pseries_suspend_enable_irqs(void)
6362
* Update configuration which can be modified based on device tree
6463
* changes during resume.
6564
*/
66-
cacheinfo_cpu_offline(smp_processor_id());
6765
post_mobility_fixup();
68-
cacheinfo_cpu_online(smp_processor_id());
6966
}
7067

7168
/**

0 commit comments

Comments
 (0)