]> git.baikalelectronics.ru Git - uboot.git/commit
x86: acpi: Refactor acpi_resume()
authorBin Meng <bmeng.cn@gmail.com>
Fri, 21 Apr 2017 14:24:44 +0000 (07:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 17 May 2017 09:11:46 +0000 (17:11 +0800)
commit2ea1d0a357a8851296ccbd8356d3edc7e3a26b1d
treecd9f590e8e6a7f075f0c223a23d9467a4b6d3551
parent4f38efb15bf3bd3902ebfc47dea03151252181cb
x86: acpi: Refactor acpi_resume()

To do something more in acpi_resume() like turning on ACPI mode,
we need locate ACPI FADT table pointer first. But currently this
is done in acpi_find_wakeup_vector().

This changes acpi_resume() signature to accept ACPI FADT pointer
as the parameter. A new API acpi_find_fadt() is introduced, and
acpi_find_wakeup_vector() is updated to use FADT pointer as the
parameter as well.

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/acpi_table.h
arch/x86/lib/acpi_s3.c
arch/x86/lib/acpi_table.c