{
switch(priority) {
case MODULE_PRIORITY_LATE:
+ case MODULE_PRIORITY_INITIAL:
case MODULE_PRIORITY_NORMAL:
case MODULE_PRIORITY_HIGH:
case MODULE_PRIORITY_EARLY:
void modules_init(void *data)
{
module_init_per_priority(data, MODULE_PRIORITY_EARLY);
+ module_init_per_priority(data, MODULE_PRIORITY_INITIAL);
module_init_per_priority(data, MODULE_PRIORITY_HIGH);
}
void modules_init_late(void *data)
{
module_init_per_priority(data, MODULE_PRIORITY_EARLY);
+ module_init_per_priority(data, MODULE_PRIORITY_INITIAL);
module_init_per_priority(data, MODULE_PRIORITY_HIGH);
module_init_per_priority(data, MODULE_PRIORITY_NORMAL);
module_init_per_priority(data, MODULE_PRIORITY_LATE);
* modules.
*/
enum module_priority {
+ /* FIXME: Rename the priority enum symbols below */
MODULE_PRIORITY_MIN = -1, /* indicates the start of priority */
/* Don't use MODULE_PRIORITY_MIN as a priority */
MODULE_PRIORITY_LATE = 0, /* Default priority */
MODULE_PRIORITY_NORMAL, /* Initialized after booting is done */
MODULE_PRIORITY_HIGH, /* Initialized as soon as resourced is started */
+ MODULE_PRIORITY_INITIAL, /* Initialized right after EARLY priority modules */
MODULE_PRIORITY_EARLY, /* initialized before NORMAL priority modules */
MODULE_PRIORITY_MAX, /* indicates the number of priorities*/