There exists a possibility of calling function run_init_cells() twice on function run_init_cells_asap().
Kernel exists only as two cases: (1) Kernel is already ready, and (2) Kernel is not yet ready, and in both cases, run_init_cells() should be called only once.
On case (1), there is no need to hook an event on kernel_ready, as cells are already initialized.
If the event hook exists, in some specific cases, run_init_cells() is called twice, due to racing conditions.
There exists a possibility of calling function
run_init_cells()
twice on functionrun_init_cells_asap()
. Kernel exists only as two cases: (1) Kernel is already ready, and (2) Kernel is not yet ready, and in both cases,run_init_cells()
should be called only once. On case (1), there is no need to hook an event onkernel_ready
, as cells are already initialized. If the event hook exists, in some specific cases,run_init_cells()
is called twice, due to racing conditions.