aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2022-09-17 23:41:46 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2022-09-17 23:52:23 +0000
commitc3707bd3d658b7a085fde274fb404f61062f2d41 (patch)
tree70b846d5ff1db77317eead4931eea78f910b4ab5
parent4a676571e382d0188b98134732f421df57a47a87 (diff)
downloadsrc-c3707bd3d658b7a085fde274fb404f61062f2d41.tar.gz
src-c3707bd3d658b7a085fde274fb404f61062f2d41.zip
linuxkpi: use SI_SUB_EVENTHANDLER + 1, like other consumers
Otherwise it may try to initialize before eventhandler subsystem.
-rw-r--r--sys/compat/linuxkpi/common/src/linux_current.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_current.c b/sys/compat/linuxkpi/common/src/linux_current.c
index bfebbcb81d90..e84b8bde2ada 100644
--- a/sys/compat/linuxkpi/common/src/linux_current.c
+++ b/sys/compat/linuxkpi/common/src/linux_current.c
@@ -307,7 +307,7 @@ linux_current_init(void *arg __unused)
linuxkpi_thread_dtor, NULL, EVENTHANDLER_PRI_ANY);
lkpi_alloc_current = linux_alloc_current;
}
-SYSINIT(linux_current, SI_SUB_EVENTHANDLER, SI_ORDER_SECOND,
+SYSINIT(linux_current, SI_SUB_EVENTHANDLER + 1, SI_ORDER_SECOND,
linux_current_init, NULL);
static void
@@ -341,5 +341,5 @@ linux_current_uninit(void *arg __unused)
uma_zdestroy(linux_current_zone);
uma_zdestroy(linux_mm_zone);
}
-SYSUNINIT(linux_current, SI_SUB_EVENTHANDLER, SI_ORDER_SECOND,
+SYSUNINIT(linux_current, SI_SUB_EVENTHANDLER + 1, SI_ORDER_SECOND,
linux_current_uninit, NULL);