Skip to content

Commit 67a6de4

Browse files
Peter Zijlstraingomolnar
authored andcommitted
locking/doc: Update references to kernel/mutex.c
Fix this docbook error: >> docproc: kernel/mutex.c: No such file or directory by updating the stale references to kernel/mutex.c. Reported-by: fengguang.wu@intel.com Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/n/tip-34pikw1tlsskj65rrt5iusrq@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 5ac68e7 commit 67a6de4

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎Documentation/DocBook/kernel-locking.tmpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ machines due to caching.
19581958
<chapter id="apiref-mutex">
19591959
<title>Mutex API reference</title>
19601960
!Iinclude/linux/mutex.h
1961-
!Ekernel/mutex.c
1961+
!Ekernel/locking/mutex.c
19621962
</chapter>
19631963

19641964
<chapter id="apiref-futex">

‎Documentation/mutex-design.txt‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ using mutexes at the moment, please let me know if you find any. ]
116116
Implementation of mutexes
117117
-------------------------
118118

119-
'struct mutex' is the new mutex type, defined in include/linux/mutex.h
120-
and implemented in kernel/mutex.c. It is a counter-based mutex with a
121-
spinlock and a wait-list. The counter has 3 states: 1 for "unlocked",
122-
0 for "locked" and negative numbers (usually -1) for "locked, potential
123-
waiters queued".
119+
'struct mutex' is the new mutex type, defined in include/linux/mutex.h and
120+
implemented in kernel/locking/mutex.c. It is a counter-based mutex with a
121+
spinlock and a wait-list. The counter has 3 states: 1 for "unlocked", 0 for
122+
"locked" and negative numbers (usually -1) for "locked, potential waiters
123+
queued".
124124

125125
the APIs of 'struct mutex' have been streamlined:
126126

‎include/linux/mutex.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static inline int mutex_is_locked(struct mutex *lock)
131131
}
132132

133133
/*
134-
* See kernel/mutex.c for detailed documentation of these APIs.
134+
* See kernel/locking/mutex.c for detailed documentation of these APIs.
135135
* Also see Documentation/mutex-design.txt.
136136
*/
137137
#ifdef CONFIG_DEBUG_LOCK_ALLOC

‎kernel/locking/mutex.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* kernel/mutex.c
2+
* kernel/locking/mutex.c
33
*
44
* Mutexes: blocking mutual exclusion locks
55
*

0 commit comments

Comments
 (0)