mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 05:11:46 +00:00
Mutex documentation is unclear about software interrupts, tasklets and timers
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>
This commit is contained in:
parent
1019f96d2d
commit
f20fda4861
2 changed files with 4 additions and 2 deletions
|
@ -90,7 +90,8 @@ of advantages of mutexes:
|
||||||
* - task may not exit with mutex held
|
* - task may not exit with mutex held
|
||||||
* - memory areas where held locks reside must not be freed
|
* - memory areas where held locks reside must not be freed
|
||||||
* - held mutexes must not be reinitialized
|
* - 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
|
furthermore, there are also convenience features in the debugging
|
||||||
code:
|
code:
|
||||||
|
|
|
@ -29,7 +29,8 @@
|
||||||
* - task may not exit with mutex held
|
* - task may not exit with mutex held
|
||||||
* - memory areas where held locks reside must not be freed
|
* - memory areas where held locks reside must not be freed
|
||||||
* - held mutexes must not be reinitialized
|
* - 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
|
* These semantics are fully enforced when DEBUG_MUTEXES is
|
||||||
* enabled. Furthermore, besides enforcing the above rules, the mutex
|
* enabled. Furthermore, besides enforcing the above rules, the mutex
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue