aboutsummaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-03-04 18:17:28 -0800
committerJulius Werner <jwerner@chromium.org>2019-03-06 01:14:57 +0000
commitc8aed4812759d50cd685ec14afded26a69ac5ff9 (patch)
treeab9f3b9554de9dc5863ea4d15d7308ae7e07f901 /src/cpu
parente5861828ee4357a3df94a8670da1fe9e628deb47 (diff)
x86/car: Fix incorrect config usage
This IS_ENABLED(XXX) line should've clearly been IS_ENABLED(CONFIG_XXX). This patch fixes the issue. Not tested on a real board, but looking at the affected code paths suggests that this will result in no effective change anywhere (since CAR should already be torn down by the time this is called on FSP1.0 boards, so do_car_migrate_variables() would have immediately exited anyway). Change-Id: I74e0ed4d04471ee521ff5c69a74a6f4c949e5847 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31744 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/x86/car.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/x86/car.c b/src/cpu/x86/car.c
index 1b02f8b7da..1a99c36d82 100644
--- a/src/cpu/x86/car.c
+++ b/src/cpu/x86/car.c
@@ -142,7 +142,7 @@ static void do_car_migrate_variables(void)
static void car_migrate_variables(int is_recovery)
{
- if (!IS_ENABLED(PLATFORM_USES_FSP1_0))
+ if (!IS_ENABLED(CONFIG_PLATFORM_USES_FSP1_0))
do_car_migrate_variables();
}
ROMSTAGE_CBMEM_INIT_HOOK(car_migrate_variables)