]> git.baikalelectronics.ru Git - uboot.git/commit
x86: Avoid #ifdef with CONFIG_HAVE_ACPI_RESUME
authorSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:43:16 +0000 (18:43 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commit6c1fd24b8ea819fbe85fc43638b991b398ed2d86
tree510738a8a2f0665bdb0ef9dd61faee9c5f3b16e0
parent26020435415e02beed8da5ed7ecd62a565149a30
x86: Avoid #ifdef with CONFIG_HAVE_ACPI_RESUME

At present this enables a few arch-specific members of the global_data
struct which are otherwise not part of the struct. As a result we have to
use #ifdef in various places.

The cost of always having these in the struct is small. Adjust things so
that we can use compile-time code instead of #ifdefs.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/apollolake/cpu_spl.c
arch/x86/cpu/apollolake/fsp_s.c
arch/x86/cpu/baytrail/acpi.c
arch/x86/cpu/broadwell/power_state.c
arch/x86/cpu/cpu.c
arch/x86/include/asm/global_data.h
arch/x86/lib/coreboot_table.c
arch/x86/lib/fsp/fsp_common.c
arch/x86/lib/fsp/fsp_dram.c
arch/x86/lib/fsp1/fsp_common.c
arch/x86/lib/fsp2/fsp_dram.c