summaryrefslogtreecommitdiff
path: root/src/include/smp/node.h
blob: 8f3d14fde1de52999f5e104b16fc349968774424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef _SMP_NODE_H_
#define _SMP_NODE_H_

#if CONFIG(SMP)
int boot_cpu(void);
#else
#define boot_cpu(x) 1
#endif

static inline int is_smp_boot(void)
{
	return CONFIG(SMP) && CONFIG_MAX_CPUS > 1;
}

#endif /* _SMP_NODE_H_ */