diff options
Diffstat (limited to 'src/include/smp/node.h')
-rw-r--r-- | src/include/smp/node.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/smp/node.h b/src/include/smp/node.h index 65931bc404..dd5e9f97ac 100644 --- a/src/include/smp/node.h +++ b/src/include/smp/node.h @@ -7,4 +7,9 @@ int boot_cpu(void); #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_ */ |