diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-08-11 11:31:05 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-10-25 13:58:02 +0000 |
commit | b7cbb7c43157d45187abcf953d693152230a8120 (patch) | |
tree | 40775aeb774648dae4e72f15d62172865f48eb87 /src/soc/intel | |
parent | bfadc78bd719196e2fa78c23a8a0bb27dff65fd6 (diff) |
cbmem.h: Drop cbmem_possible_online in favor of ENV_HAS_CBMEM
The macro ENV_HAS_CBMEM achieves the same as this inline function.
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: I6d65ca51c863abe2106f794398ddd7d7d9ac4b5e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77166
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <czapiga@google.com>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/common/block/pmc/pmclib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/pmc/pmclib.c b/src/soc/intel/common/block/pmc/pmclib.c index 5a8cd3b7b7..84fc5cafe5 100644 --- a/src/soc/intel/common/block/pmc/pmclib.c +++ b/src/soc/intel/common/block/pmc/pmclib.c @@ -64,7 +64,7 @@ struct chipset_power_state *pmc_get_power_state(void) { struct chipset_power_state *ptr = NULL; - if (cbmem_possibly_online()) + if (ENV_HAS_CBMEM) ptr = acpi_get_pm_state(); /* cbmem is online but ptr is not populated yet */ |