From b4c679bd6093be21cd6e78fca90a4b490e8b83db Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Tue, 16 Jan 2018 01:52:26 +0100 Subject: Clean up init op dependencies between syscnt and mutex --- kern/mutex.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'kern/mutex.h') diff --git a/kern/mutex.h b/kern/mutex.h index f152d317..10872e6e 100644 --- a/kern/mutex.h +++ b/kern/mutex.h @@ -110,6 +110,15 @@ mutex_unlock(struct mutex *mutex) 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 -- cgit v1.2.3