From: Zhimin Gu Date: Fri, 21 Sep 2018 06:28:41 +0000 (+0800) Subject: x86-32, hibernate: Adjust in_suspend after resumed on 32bit system X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1fca4ba0b14d79e8a43822f7b0c7288efba4c9fa;p=linux.git x86-32, hibernate: Adjust in_suspend after resumed on 32bit system Update the in_suspend variable to reflect the actual hibernation status. Back-port from 64bit system. 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 01f653fae7bd4..6fe383002125f 100644 --- a/arch/x86/power/hibernate_asm_32.S +++ b/arch/x86/power/hibernate_asm_32.S @@ -103,5 +103,8 @@ ENTRY(restore_registers) xorl %eax, %eax + /* tell the hibernation core that we've just restored the memory */ + movl %eax, in_suspend + ret ENDPROC(restore_registers)