]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Mutex documentation is unclear about software interrupts, tasklets and timers
authorMatti Linnanvuori <mattilinnanvuori@yahoo.com>
Wed, 17 Oct 2007 06:29:41 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:57 +0000 (08:42 -0700)
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/mutex-design.txt
include/linux/mutex.h

index cbf79881a41c8dc1b9382d5848716a76b6c37438..51f935191ae5d86fbf21fb801853eb20dff546a3 100644 (file)
@@ -90,7 +90,8 @@ of advantages of mutexes:
    * - task may not exit with mutex held
    * - memory areas where held locks reside must not be freed
    * - held mutexes must not be reinitialized
-   * - mutexes may not be used in irq contexts
+   * - mutexes may not be used in hardware or software interrupt
+   *   contexts such as tasklets and timers
 
    furthermore, there are also convenience features in the debugging
    code:
index 6a735c72f23f1c2fd3b983af1c47d9b275879ff9..601479772b989a5581fd89fa9cc13cb838c13c11 100644 (file)
@@ -29,7 +29,8 @@
  * - task may not exit with mutex held
  * - memory areas where held locks reside must not be freed
  * - held mutexes must not be reinitialized
- * - mutexes may not be used in irq contexts
+ * - mutexes may not be used in hardware or software interrupt
+ *   contexts such as tasklets and timers
  *
  * These semantics are fully enforced when DEBUG_MUTEXES is
  * enabled. Furthermore, besides enforcing the above rules, the mutex