mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
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>
16 lines
248 B
C
16 lines
248 B
C
#ifndef _SMP_NODE_H_
|
|
#define _SMP_NODE_H_
|
|
|
|
#if IS_ENABLED(CONFIG_SMP)
|
|
int boot_cpu(void);
|
|
#else
|
|
#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_ */
|