Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Zijlstra and committed by
Ingo Molnar
67a6de49 5ac68e7c

+8 -8
+1 -1
Documentation/DocBook/kernel-locking.tmpl
··· 1958 1958 <chapter id="apiref-mutex"> 1959 1959 <title>Mutex API reference</title> 1960 1960 !Iinclude/linux/mutex.h 1961 - !Ekernel/mutex.c 1961 + !Ekernel/locking/mutex.c 1962 1962 </chapter> 1963 1963 1964 1964 <chapter id="apiref-futex">
+5 -5
Documentation/mutex-design.txt
··· 116 116 Implementation of mutexes 117 117 ------------------------- 118 118 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". 124 124 125 125 the APIs of 'struct mutex' have been streamlined: 126 126
+1 -1
include/linux/mutex.h
··· 131 131 } 132 132 133 133 /* 134 - * See kernel/mutex.c for detailed documentation of these APIs. 134 + * See kernel/locking/mutex.c for detailed documentation of these APIs. 135 135 * Also see Documentation/mutex-design.txt. 136 136 */ 137 137 #ifdef CONFIG_DEBUG_LOCK_ALLOC
+1 -1
kernel/locking/mutex.c
··· 1 1 /* 2 - * kernel/mutex.c 2 + * kernel/locking/mutex.c 3 3 * 4 4 * Mutexes: blocking mutual exclusion locks 5 5 *