summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-04-21 14:38:54 +0200
committerRichard Braun <rbraun@sceen.net>2018-04-21 14:38:54 +0200
commit3ca133c4a08b436f4d41331a643ee70bb2e9f08b (patch)
tree5128be82f95390b559e1044e12f96c35a011432a
parente6a01670c335a1864b659e250cd2c29fb7da369f (diff)
kern/mutex/mutex_adaptive: fix atomic operation calls
-rw-r--r--kern/mutex/mutex_adaptive_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/mutex/mutex_adaptive_i.h b/kern/mutex/mutex_adaptive_i.h
index b123251..e29fdb4 100644
--- a/kern/mutex/mutex_adaptive_i.h
+++ b/kern/mutex/mutex_adaptive_i.h
@@ -40,7 +40,7 @@
* to be unlocked, potentially spinning on the owner. It forces threads
* trying to lock the mutex as well as the owner to take the slow path.
*/
-#define MUTEX_ADAPTIVE_CONTENDED 0x1
+#define MUTEX_ADAPTIVE_CONTENDED 0x1UL
static inline void
mutex_adaptive_init(struct mutex *mutex)