]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Replace _spin_trylock with spin_trylock in the IRQ variants to use __cond_lock
authorJosh Triplett <josht@us.ibm.com>
Fri, 29 Sep 2006 09:01:00 +0000 (02:01 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:19 +0000 (09:18 -0700)
commit47ce923679214e4fde2c43f31a3c513706113496
treee98f5cda14643fd705b69e318ad86f854edbb18b
parent9ca8a156c1c56991a0e33de34c836e9532ceb4c8
[PATCH] Replace _spin_trylock with spin_trylock in the IRQ variants to use __cond_lock

spin_trylock_irq and spin_trylock_irqsave use _spin_trylock, which does not
use the __cond_lock wrapper annotation and thus does not affect the lock
context; change them to use spin_trylock instead, which does use
__cond_lock.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/spinlock.h