/ src / include / smp / node.h
node.h
 1  /* SPDX-License-Identifier: GPL-2.0-only */
 2  
 3  #ifndef _SMP_NODE_H_
 4  #define _SMP_NODE_H_
 5  
 6  #if CONFIG(SMP)
 7  int boot_cpu(void);
 8  #else
 9  #define boot_cpu(x) 1
10  #endif
11  
12  static inline int is_smp_boot(void)
13  {
14  	return CONFIG(SMP) && CONFIG_MAX_CPUS > 1;
15  }
16  
17  #endif /* _SMP_NODE_H_ */