kernel: add sys init level for SMP

This adds a sys init level which allows device and sys_init
to be done after SMP initialization, z_smp_init(), when all
cores are up and running.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2020-01-15 08:57:29 -08:00 committed by Anas Nashif
commit 4e1637b54e
5 changed files with 15 additions and 0 deletions

View file

@ -25,6 +25,10 @@ extern "C" {
#define _SYS_INIT_LEVEL_POST_KERNEL 2
#define _SYS_INIT_LEVEL_APPLICATION 3
#ifdef CONFIG_SMP
#define _SYS_INIT_LEVEL_SMP 4
#endif
/* A counter is used to avoid issues when two or more system devices
* are declared in the same C file with the same init function.
*/