Skip to content

Commit e0c82f4

Browse files
committed
Fix init order in the LinuxKPI for IDR support after recent changes.
CPU_FOREACH() is not available until SI_SUB_CPU at SI_ORDER_ANY when the LinuxKPI is loaded as part of the kernel. Signed-off-by: Hans Petter Selasky <hps@selasky.org>
1 parent 3de4bc9 commit e0c82f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/compat/linuxkpi/common/src/linux_idr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ idr_preload_init(void *arg)
9696
spin_lock_init(&lic->lock);
9797
}
9898
}
99-
SYSINIT(idr_preload_init, SI_SUB_LOCK, SI_ORDER_FIRST, idr_preload_init, NULL);
99+
SYSINIT(idr_preload_init, SI_SUB_CPU, SI_ORDER_ANY, idr_preload_init, NULL);
100100

101101
static void
102102
idr_preload_uninit(void *arg)

0 commit comments

Comments
 (0)