Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Zhimin Gu and committed by
Rafael J. Wysocki
1fca4ba0 5331d2c7

+3
+3
arch/x86/power/hibernate_asm_32.S
··· 103 103 104 104 xorl %eax, %eax 105 105 106 + /* tell the hibernation core that we've just restored the memory */ 107 + movl %eax, in_suspend 108 + 106 109 ret 107 110 ENDPROC(restore_registers)