Kyösti Mälkki | 5a5c886 | 2014-01-26 14:41:54 +0200 | [diff] [blame] | 1 | #ifndef _SMP_NODE_H_ |
| 2 | #define _SMP_NODE_H_ |
| 3 | |
Martin Roth | 9634547 | 2017-06-24 14:13:53 -0600 | [diff] [blame] | 4 | #if IS_ENABLED(CONFIG_SMP) |
Kyösti Mälkki | 5a5c886 | 2014-01-26 14:41:54 +0200 | [diff] [blame] | 5 | int boot_cpu(void); |
| 6 | #else |
| 7 | #define boot_cpu(x) 1 |
| 8 | #endif |
| 9 | |
Kyösti Mälkki | 0cc2ce4 | 2017-08-18 11:46:32 +0300 | [diff] [blame] | 10 | static inline int is_smp_boot(void) |
| 11 | { |
| 12 | return IS_ENABLED(CONFIG_SMP) && CONFIG_MAX_CPUS > 1; |
| 13 | } |
| 14 | |
Kyösti Mälkki | 5a5c886 | 2014-01-26 14:41:54 +0200 | [diff] [blame] | 15 | #endif /* _SMP_NODE_H_ */ |