summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2017-08-18 11:46:32 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2017-08-19 15:30:51 +0000
commit0cc2ce432771a2625214973c471461e7df9c4a12 (patch)
tree980063ed9a33db709e5b98d4160865a30cfc3db4 /src/include
parentff284f656606548f122c59a9ffb6ab453ca89149 (diff)
downloadcoreboot-0cc2ce432771a2625214973c471461e7df9c4a12.tar.xz
arch/x86: Clean up CONFIG_SMP and MAX_CPUS test
Change-Id: I7c138758707f87c0d7a827b6887c7752d3714cde Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/21088 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/smp/node.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/smp/node.h b/src/include/smp/node.h
index 65931bc404..dd5e9f97ac 100644
--- a/src/include/smp/node.h
+++ b/src/include/smp/node.h
@@ -7,4 +7,9 @@ int boot_cpu(void);
#define boot_cpu(x) 1
#endif
+static inline int is_smp_boot(void)
+{
+ return IS_ENABLED(CONFIG_SMP) && CONFIG_MAX_CPUS > 1;
+}
+
#endif /* _SMP_NODE_H_ */