module: Add a new entry to the priority of modules 71/290871/5
authorSangYoun Kwak <sy.kwak@samsung.com>
Tue, 4 Apr 2023 09:27:43 +0000 (18:27 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Fri, 7 Apr 2023 04:55:18 +0000 (13:55 +0900)
commit5f30bcba87294c70cc642f57e5746e544248cbb7
tree8159237c7cc722e39872c9df742dd84e68396840
parenta65610ae4c9b443fd0042f4e3a2fe8ca68384fea
module: Add a new entry to the priority of modules

A new entry, MODULE_PRIORITY_INITIAL is added to the enum of
module_priority.

This priority is added for the reason below:
 * Since the 'lowmem' module has MODULE_PRIORITY_EARLY as its priority,
   modules separated from 'lowmem' module should be initialized before
   MODULE_PRIORITY_HIGH but after MODULE_PRIORITY_EARLY.

Thus, the newly added priority MODULE_PRIORITY_INITIAL will be used by
modules which need to be initialized before all other modules but after
MODULE_PRIORITY_EARLY.

Change-Id: I07f31f05c5b8851de14a8461504ce04784b6722f
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
src/common/module/module.c
src/common/module/module.h