summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhimin Gu <kookoo.gu@intel.com>2018-09-21 08:28:01 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-10-03 11:56:34 +0200
commit0b0a6b1f76835cbaf746e7c72edd374ec0fe818b (patch)
tree5cfdbcd6fcf5c5fa4e48ec57f7ff132b481f15ab
parentx86-32, hibernate: Use temp_pgt as the temporary page table (diff)
downloadlinux-0b0a6b1f76835cbaf746e7c72edd374ec0fe818b.tar.xz
linux-0b0a6b1f76835cbaf746e7c72edd374ec0fe818b.zip
x86-32, hibernate: Use the page size macro instead of constant value
Convert the hard code into PAGE_SIZE for better scalability. No functional 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>
-rw-r--r--arch/x86/power/hibernate_asm_32.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/power/hibernate_asm_32.S b/arch/x86/power/hibernate_asm_32.S
index f0627cf30a36..f5103ae96582 100644
--- a/arch/x86/power/hibernate_asm_32.S
+++ b/arch/x86/power/hibernate_asm_32.S
@@ -52,7 +52,7 @@ copy_loop:
movl pbe_address(%edx), %esi
movl pbe_orig_address(%edx), %edi
- movl $1024, %ecx
+ movl $(PAGE_SIZE >> 2), %ecx
rep
movsl