x86: Correct condition for init_cache_f_r()
authorSimon Glass <sjg@chromium.org>
Wed, 4 Jun 2025 13:09:02 +0000 (07:09 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 4 Jun 2025 14:15:12 +0000 (08:15 -0600)
The condition here is reversed, which makes link and coral very slow,
leading to lab failures.

Fixes 6c171f7a184 ("common: board: make initcalls static")

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
common/board_f.c

index bff465d..c8a612d 100644 (file)
@@ -1079,7 +1079,7 @@ void board_init_f(ulong boot_flags)
  */
 static void initcall_run_f_r(void)
 {
-#if CONFIG_IS_ENABLED(X86_64)
+#if !CONFIG_IS_ENABLED(X86_64)
        INITCALL(init_cache_f_r);
 #endif
 }