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

@ -68,6 +68,7 @@
DEVICE_INIT_LEVEL(PRE_KERNEL_2) \
DEVICE_INIT_LEVEL(POST_KERNEL) \
DEVICE_INIT_LEVEL(APPLICATION) \
DEVICE_INIT_LEVEL(SMP) \
__device_init_end = .; \
DEVICE_BUSY_BITFIELD() \