summaryrefslogtreecommitdiff
path: root/src/arch/arm64/cpu.c
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-06-29 17:07:23 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-06-30 08:11:03 +0200
commitfbc45a60eb66aaee54f7496336d090c4497eb8cc (patch)
treead2c6ad70a423fc7d30098d6f7517ba721056749 /src/arch/arm64/cpu.c
parente72487944f9dde6f0e4bc6e05d8027e1d1cc9696 (diff)
arch/arm64: Fix compilation without CONFIG_SMP
Compilers aren't happy with a declaration of boot_cpu() after defining boot_cpu to 1. Change-Id: I22d0db61646f3e226e5996fa94223ffbb6b760e5 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10696 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/arch/arm64/cpu.c')
-rw-r--r--src/arch/arm64/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/arm64/cpu.c b/src/arch/arm64/cpu.c
index 3cf73aedde..1b33c10c55 100644
--- a/src/arch/arm64/cpu.c
+++ b/src/arch/arm64/cpu.c
@@ -220,7 +220,9 @@ void arch_cpu_wait_for_action(void)
}
}
+#if IS_ENABLED(CONFIG_SMP)
int boot_cpu(void)
{
return cpu_is_bsp();
}
+#endif