Skip to contentSkip to conversation

powerpc: fix 64-bit hibernation with 64k pages

PATCH New Johannes Berg 1 participant 1 message Sep 24, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: fix 64-bit hibernation with 64k pages

Brown paper bag patch, the fact that it didn't work is entirely my fault for hardcoding 512 in the original patch.

---
Contains the revert for the earlier patch just in case; probably better to not apply the earlier patch and only the first hunk of this.

---
 arch/powerpc/Kconfig               |    2 +-
 arch/powerpc/kernel/swsusp_asm64.S |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/kernel/swsusp_asm64.S +1 -1
@@ -133,7 +133,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
 
 	cmpdi	r12,0
 	beq-	nothing_to_copy
-	li	r15,512
+	li	r15,PAGE_SIZE>>3
 copyloop:
 	ld	r13,pbe_address(r12)
 	ld	r14,pbe_orig_address(r12)
arch/powerpc/Kconfig +1 -1
@@ -194,7 +194,7 @@ config HIBERNATE_32
 
 config HIBERNATE_64
 	bool
-	depends on BROKEN || (PPC_PMAC64 && !PPC_64K_PAGES && EXPERIMENTAL)
+	depends on BROKEN || (PPC_PMAC64 && EXPERIMENTAL)
 	default y
 
 config ARCH_HIBERNATION_POSSIBLE