summaryrefslogtreecommitdiff
path: root/arch/x86/power/hibernate_asm_32.S
diff options
context:
space:
mode:
authorZhimin Gu <kookoo.gu@intel.com>2018-09-21 09:27:51 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-10-03 12:56:34 +0300
commit7c0a982750b3f8bc6636e8086ac4d8b7775e90f6 (patch)
tree636b9b8876fa1c790077d58c8cbb643b4ebd599e /arch/x86/power/hibernate_asm_32.S
parent72adf47764a0be66ea0c712c7d5a6b8a81e28449 (diff)
downloadlinux-7c0a982750b3f8bc6636e8086ac4d8b7775e90f6.tar.xz
x86-32, hibernate: Use temp_pgt as the temporary page table
This is to reuse the temp_pgt for both 32bit and 64bit system. No intentional behavior change. Signed-off-by: Zhimin Gu <kookoo.gu@intel.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Chen Yu <yu.c.chen@intel.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/x86/power/hibernate_asm_32.S')
-rw-r--r--arch/x86/power/hibernate_asm_32.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/power/hibernate_asm_32.S b/arch/x86/power/hibernate_asm_32.S
index 671d38d0d931..f0627cf30a36 100644
--- a/arch/x86/power/hibernate_asm_32.S
+++ b/arch/x86/power/hibernate_asm_32.S
@@ -33,8 +33,7 @@ ENDPROC(swsusp_arch_suspend)
ENTRY(restore_image)
movl mmu_cr4_features, %ecx
- movl resume_pg_dir, %eax
- subl $__PAGE_OFFSET, %eax
+ movl temp_pgt, %eax
movl %eax, %cr3
jecxz 1f # cr4 Pentium and higher, skip if zero