summaryrefslogtreecommitdiff
path: root/kern/mutex_i.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-03-04 16:27:05 +0100
committerRichard Braun <rbraun@sceen.net>2017-03-04 16:52:30 +0100
commitf4d75d0cd8424c17521d520fd9018ea22b7daaad (patch)
treea6f4807984c781e3584c79491ecb23e75f012ac6 /kern/mutex_i.h
parent3fcd23576e800ebbfb1378c2e6aff2e9e1027989 (diff)
kern/mutex: implement the --enable-mutex-pi option
This option turns all regular mutexes into real-time mutexes.
Diffstat (limited to 'kern/mutex_i.h')
-rw-r--r--kern/mutex_i.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/mutex_i.h b/kern/mutex_i.h
index a161b1bb..158d8f7f 100644
--- a/kern/mutex_i.h
+++ b/kern/mutex_i.h
@@ -18,6 +18,8 @@
#ifndef _KERN_MUTEX_I_H
#define _KERN_MUTEX_I_H
+#ifndef X15_MUTEX_PI
+
#include <kern/assert.h>
#include <kern/mutex_types.h>
#include <machine/atomic.h>
@@ -46,5 +48,6 @@ void mutex_lock_slow(struct mutex *mutex);
void mutex_unlock_slow(struct mutex *mutex);
+#endif /* X15_MUTEX_PI */
#endif /* _KERN_MUTEX_I_H */