kernel: deprecate old init levels
PRIMARY, SECONDARY, NANOKERNEL, MICROKERNEL init levels are now deprecated. New init levels introduced: PRE_KERNEL_1, PRE_KERNEL_2, POST_KERNEL to replace them. Most existing code has instances of PRIMARY replaced with PRE_KERNEL_1, SECONDARY with POST_KERNEL as SECONDARY has had a longstanding bug where the documentation specified SECONDARY ran before the kernel started up, but actually ran afterwards. Change-Id: I771bc634e9caf7f17dbf214a270bc9967eed7d32 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
183a79cf6e
commit
0b474eef9c
150 changed files with 281 additions and 238 deletions
|
@ -200,4 +200,4 @@ static int atmel_sam3_init(struct device *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(atmel_sam3_init, PRIMARY, 0);
|
||||
SYS_INIT(atmel_sam3_init, PRE_KERNEL_1, 0);
|
||||
|
|
|
@ -126,4 +126,4 @@ static bool ftpan_59(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
SYS_INIT(nordicsemi_nrf51_init, PRIMARY, 0);
|
||||
SYS_INIT(nordicsemi_nrf51_init, PRE_KERNEL_1, 0);
|
||||
|
|
|
@ -247,4 +247,4 @@ static bool ftpan_36(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
SYS_INIT(nordicsemi_nrf52_init, PRIMARY, 0);
|
||||
SYS_INIT(nordicsemi_nrf52_init, PRE_KERNEL_1, 0);
|
||||
|
|
|
@ -209,4 +209,4 @@ static int fsl_frdm_k64f_init(struct device *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(fsl_frdm_k64f_init, PRIMARY, 0);
|
||||
SYS_INIT(fsl_frdm_k64f_init, PRE_KERNEL_1, 0);
|
||||
|
|
|
@ -119,6 +119,6 @@ static int uart_k20_init(struct device *dev)
|
|||
|
||||
DEVICE_INIT(_uart_k20_init, "", uart_k20_init,
|
||||
NULL, NULL,
|
||||
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
||||
#endif /* CONFIG_UART_K20 */
|
||||
|
|
|
@ -63,4 +63,4 @@ static int stm32f1_init(struct device *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(stm32f1_init, PRIMARY, 0);
|
||||
SYS_INIT(stm32f1_init, PRE_KERNEL_1, 0);
|
||||
|
|
|
@ -64,4 +64,4 @@ static int st_stm32f4_init(struct device *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(st_stm32f4_init, PRIMARY, 0);
|
||||
SYS_INIT(st_stm32f4_init, PRE_KERNEL_1, 0);
|
||||
|
|
|
@ -51,4 +51,4 @@ static int ti_lm3s6965_init(struct device *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(ti_lm3s6965_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(ti_lm3s6965_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
|
|
@ -51,6 +51,6 @@ static int uart_stellaris_init(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(uart_stellaris_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
SYS_INIT(uart_stellaris_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
|
||||
#endif /* CONFIG_UART_STELLARIS */
|
||||
|
|
|
@ -28,4 +28,4 @@ static int ti_cc3200_init(struct device *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(ti_cc3200_init, PRIMARY, 0);
|
||||
SYS_INIT(ti_cc3200_init, PRE_KERNEL_1, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue