diff options
Diffstat (limited to 'kern/mutex.h')
-rw-r--r-- | kern/mutex.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/kern/mutex.h b/kern/mutex.h index f152d31..b4332de 100644 --- a/kern/mutex.h +++ b/kern/mutex.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2017 Richard Braun. + * Copyright (c) 2013-2018 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,7 +37,6 @@ #include <kern/init.h> #include <kern/mutex_types.h> -#include <kern/thread.h> /* * Initialize a mutex. @@ -102,15 +101,18 @@ static inline void mutex_unlock(struct mutex *mutex) { mutex_impl_unlock(mutex); - - /* - * If this mutex was used along with a condition variable, wake up - * a potential pending waiter. - */ - thread_wakeup_last_cond(); } /* + * Special init operation for syscnt_setup. + * + * This init operation only exists to avoid a circular dependency between + * syscnt_setup and mutex_setup, without giving syscnt_setup knowledge + * about the dependencies of mutex_setup. + */ +INIT_OP_DECLARE(mutex_bootstrap); + +/* * This init operation provides : * - uncontended mutex locking * |