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>
This commit is contained in:
Arthur Heymans
2023-08-11 11:31:05 +02:00
committed by Felix Held
parent bfadc78bd7
commit b7cbb7c431
9 changed files with 9 additions and 26 deletions

View File

@ -618,7 +618,7 @@ void cbfs_boot_device_find_mcache(struct cbfs_boot_device *cbd, uint32_t id)
return;
const struct cbmem_entry *entry;
if (cbmem_possibly_online() &&
if (ENV_HAS_CBMEM &&
(entry = cbmem_entry_find(id))) {
cbd->mcache = cbmem_entry_start(entry);
cbd->mcache_size = cbmem_entry_size(entry);