summaryrefslogtreecommitdiff
path: root/kern/mutex/mutex_adaptive.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/mutex/mutex_adaptive.c')
-rw-r--r--kern/mutex/mutex_adaptive.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/kern/mutex/mutex_adaptive.c b/kern/mutex/mutex_adaptive.c
index 3e6b610b..bda54532 100644
--- a/kern/mutex/mutex_adaptive.c
+++ b/kern/mutex/mutex_adaptive.c
@@ -318,6 +318,15 @@ mutex_adaptive_unlock_slow(struct mutex *mutex)
}
static int
+mutex_adaptive_bootstrap(void)
+{
+ return 0;
+}
+
+INIT_OP_DEFINE(mutex_adaptive_bootstrap,
+ INIT_OP_DEP(thread_setup_booter, true));
+
+static int
mutex_adaptive_setup(void)
{
mutex_adaptive_setup_debug();
@@ -325,6 +334,7 @@ mutex_adaptive_setup(void)
}
INIT_OP_DEFINE(mutex_adaptive_setup,
+ INIT_OP_DEP(mutex_adaptive_bootstrap, true),
#ifdef CONFIG_MUTEX_DEBUG
INIT_OP_DEP(syscnt_setup, true),
#endif /* CONFIG_MUTEX_DEBUG */