From: Zhimin Gu Date: Fri, 21 Sep 2018 06:28:01 +0000 (+0800) Subject: x86-32, hibernate: Use the page size macro instead of constant value X-Git-Tag: v5.15~7804^2~2^3~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b0a6b1f76835cbaf746e7c72edd374ec0fe818b;p=platform%2Fkernel%2Flinux-starfive.git 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 Acked-by: Pavel Machek Signed-off-by: Chen Yu Acked-by: Thomas Gleixner Signed-off-by: Rafael J. Wysocki --- diff --git a/arch/x86/power/hibernate_asm_32.S b/arch/x86/power/hibernate_asm_32.S index f0627cf3..f5103ae 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