summaryrefslogtreecommitdiff
path: root/kern/mutex.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-07-13 20:07:07 +0200
committerRichard Braun <rbraun@sceen.net>2017-07-13 20:07:07 +0200
commitb2ad7d862388558556288877a65f2797528168f4 (patch)
tree4d3080abf0cbcca7c058cba5cad2ed71e5d5e1e5 /kern/mutex.c
parentcacd797c0c1825301f21aab18a7ce2c410d14535 (diff)
Switch to initialization operations
Diffstat (limited to 'kern/mutex.c')
-rw-r--r--kern/mutex.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/kern/mutex.c b/kern/mutex.c
index 7899bef..87e3d64 100644
--- a/kern/mutex.c
+++ b/kern/mutex.c
@@ -17,9 +17,9 @@
#ifndef X15_MUTEX_PI
-#include <stdbool.h>
#include <stddef.h>
+#include <kern/init.h>
#include <kern/mutex.h>
#include <kern/mutex_i.h>
#include <kern/sleepq.h>
@@ -69,3 +69,12 @@ mutex_unlock_slow(struct mutex *mutex)
}
#endif /* X15_MUTEX_PI */
+
+static int __init
+mutex_setup(void)
+{
+ return 0;
+}
+
+INIT_OP_DEFINE(mutex_setup,
+ INIT_OP_DEP(thread_setup_booter, true));