aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mutex.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-09-16 07:33:21 +0200
committerTakashi Iwai <tiwai@suse.de>2010-09-16 07:33:21 +0200
commitc91925db4925ba0d145478f02c093369196936e9 (patch)
tree0e5da4211de3c18b65337c3094ec15994cf2534a /include/linux/mutex.h
parentALSA: hda - Set up COEFs for ALC269 to avoid click noises at power-saving (diff)
parentALSA: patch_nvhdmi.c: Fix supported sample rate list. (diff)
downloadlinux-dev-c91925db4925ba0d145478f02c093369196936e9.tar.xz
linux-dev-c91925db4925ba0d145478f02c093369196936e9.zip
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'include/linux/mutex.h')
-rw-r--r--include/linux/mutex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mutex.h b/include/linux/mutex.h
index 878cab4f5fcc..f363bc8fdc74 100644
--- a/include/linux/mutex.h
+++ b/include/linux/mutex.h
@@ -78,6 +78,14 @@ struct mutex_waiter {
# include <linux/mutex-debug.h>
#else
# define __DEBUG_MUTEX_INITIALIZER(lockname)
+/**
+ * mutex_init - initialize the mutex
+ * @mutex: the mutex to be initialized
+ *
+ * Initialize the mutex to unlocked state.
+ *
+ * It is not allowed to initialize an already locked mutex.
+ */
# define mutex_init(mutex) \
do { \
static struct lock_class_key __key; \