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
|
@ -274,7 +274,7 @@ static struct gpio_k64_data gpio_data_A;
|
|||
|
||||
DEVICE_AND_API_INIT(gpio_k64_A, CONFIG_GPIO_K64_A_DEV_NAME, gpio_k64_A_init,
|
||||
&gpio_data_A, &gpio_k64_A_cfg,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&gpio_k64_drv_api_funcs);
|
||||
|
||||
static int gpio_k64_A_init(struct device *dev)
|
||||
|
@ -303,7 +303,7 @@ static struct gpio_k64_data gpio_data_B;
|
|||
|
||||
DEVICE_AND_API_INIT(gpio_k64_B, CONFIG_GPIO_K64_B_DEV_NAME, gpio_k64_B_init,
|
||||
&gpio_data_B, &gpio_k64_B_cfg,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&gpio_k64_drv_api_funcs);
|
||||
|
||||
static int gpio_k64_B_init(struct device *dev)
|
||||
|
@ -332,7 +332,7 @@ static struct gpio_k64_data gpio_data_C;
|
|||
|
||||
DEVICE_AND_API_INIT(gpio_k64_C, CONFIG_GPIO_K64_C_DEV_NAME, gpio_k64_C_init,
|
||||
&gpio_data_C, &gpio_k64_C_cfg,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&gpio_k64_drv_api_funcs);
|
||||
|
||||
static int gpio_k64_C_init(struct device *dev)
|
||||
|
@ -361,7 +361,7 @@ static struct gpio_k64_data gpio_data_D;
|
|||
|
||||
DEVICE_AND_API_INIT(gpio_k64_D, CONFIG_GPIO_K64_D_DEV_NAME, gpio_k64_D_init,
|
||||
&gpio_data_D, &gpio_k64_D_cfg,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&gpio_k64_drv_api_funcs);
|
||||
|
||||
static int gpio_k64_D_init(struct device *dev)
|
||||
|
@ -390,7 +390,7 @@ static struct gpio_k64_data gpio_data_E;
|
|||
|
||||
DEVICE_AND_API_INIT(gpio_k64_E, CONFIG_GPIO_K64_E_DEV_NAME, gpio_k64_E_init,
|
||||
&gpio_data_E, &gpio_k64_E_cfg,
|
||||
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&gpio_k64_drv_api_funcs);
|
||||
|
||||
static int gpio_k64_E_init(struct device *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue