x86: Store and display previous sleep state
authorBin Meng <bmeng.cn@gmail.com>
Fri, 21 Apr 2017 14:24:32 +0000 (07:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 17 May 2017 09:11:46 +0000 (17:11 +0800)
commitb727961b0706df57d408fe609cfe098a91626da3
tree58950cda536d31379e6cb28486617ea71d18914e
parent1206723b6e597f1aa946b800fc59059db91908bc
x86: Store and display previous sleep state

Add one member in the global data to store previous sleep state,
and display the state during boot in print_cpuinfo().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Stefan Roese <sr@denx.de>
arch/x86/cpu/cpu.c
arch/x86/include/asm/acpi_s3.h
arch/x86/include/asm/global_data.h
arch/x86/lib/fsp/fsp_common.c