aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhimin Gu <[email protected]>2018-09-21 14:28:01 +0800
committerRafael J. Wysocki <[email protected]>2018-10-03 11:56:34 +0200
commit0b0a6b1f76835cbaf746e7c72edd374ec0fe818b (patch)
tree5cfdbcd6fcf5c5fa4e48ec57f7ff132b481f15ab
parent7c0a982750b3f8bc6636e8086ac4d8b7775e90f6 (diff)
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 <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Chen Yu <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
-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