blob: dd5e9f97ac137fdfc728c5b2e52888dee5ce70c0 [file] [log] [blame]
Kyösti Mälkki5a5c8862014-01-26 14:41:54 +02001#ifndef _SMP_NODE_H_
2#define _SMP_NODE_H_
3
Martin Roth96345472017-06-24 14:13:53 -06004#if IS_ENABLED(CONFIG_SMP)
Kyösti Mälkki5a5c8862014-01-26 14:41:54 +02005int boot_cpu(void);
6#else
7#define boot_cpu(x) 1
8#endif
9
Kyösti Mälkki0cc2ce42017-08-18 11:46:32 +030010static inline int is_smp_boot(void)
11{
12 return IS_ENABLED(CONFIG_SMP) && CONFIG_MAX_CPUS > 1;
13}
14
Kyösti Mälkki5a5c8862014-01-26 14:41:54 +020015#endif /* _SMP_NODE_H_ */