[U-Boot] [PATCH v2 17/22] x86: acpi: Refactor acpi_resume()

Bin Meng bmeng.cn at gmail.com
Wed Apr 26 07:35:23 UTC 2017


On Fri, Apr 21, 2017 at 10:24 PM, Bin Meng <bmeng.cn at gmail.com> wrote:
> 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 at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> ---
>
> Changes in v2:
> - add a function comment block for acpi_find_fadt()
>
>  arch/x86/cpu/cpu.c                |  6 +++---
>  arch/x86/include/asm/acpi_s3.h    |  5 +++--
>  arch/x86/include/asm/acpi_table.h | 11 ++++++++++-
>  arch/x86/lib/acpi_s3.c            |  7 ++++++-
>  arch/x86/lib/acpi_table.c         | 16 +++++++++++-----
>  5 files changed, 33 insertions(+), 12 deletions(-)
>

applied to u-boot-x86/next, thanks!


More information about the U-Boot mailing list