aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r--Documentation/DocBook/kernel-locking.tmpl7
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/DocBook/kernel-locking.tmpl b/Documentation/DocBook/kernel-locking.tmpl
index ed64d220baf2..d7884b13fb11 100644
--- a/Documentation/DocBook/kernel-locking.tmpl
+++ b/Documentation/DocBook/kernel-locking.tmpl
@@ -1916,9 +1916,12 @@ machines due to caching.
1916 <function>mutex_lock()</function> 1916 <function>mutex_lock()</function>
1917 </para> 1917 </para>
1918 <para> 1918 <para>
1919 There is a <function>mutex_trylock()</function> which can be 1919 There is a <function>mutex_trylock()</function> which does not
1920 used inside interrupt context, as it will not sleep. 1920 sleep. Still, it must not be used inside interrupt context since
1921 its implementation is not safe for that.
1921 <function>mutex_unlock()</function> will also never sleep. 1922 <function>mutex_unlock()</function> will also never sleep.
1923 It cannot be used in interrupt context either since a mutex
1924 must be released by the same task that acquired it.
1922 </para> 1925 </para>
1923 </listitem> 1926 </listitem>
1924 </itemizedlist> 1927 </itemizedlist>