diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-05-06 10:56:11 +0200 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-05-06 10:56:11 +0200 |
commit | 865820a3df8f78274522b8c55585a61c13889bd3 (patch) | |
tree | 5451012c9c4f34ff9f95f739e26da6b18a907117 | |
parent | ce31200bf83de4cb46fb8fb8c744c6e1c985588a (diff) |
remove local_irq_restore in spin_trylock_irqsave.
-rw-r--r-- | libdde_linux26/include/linux/spinlock.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libdde_linux26/include/linux/spinlock.h b/libdde_linux26/include/linux/spinlock.h index 7fb7a251..f038d145 100644 --- a/libdde_linux26/include/linux/spinlock.h +++ b/libdde_linux26/include/linux/spinlock.h @@ -444,11 +444,7 @@ static int __lockfunc spin_trylock(spinlock_t *lock) #define _raw_spin_unlock(l) spin_unlock(l) #define _raw_spin_trylock(l) spin_trylock(l) -#define spin_trylock_irqsave(lock, flags) \ -({ \ - spin_trylock(lock) ? \ - 1 : ({ local_irq_restore(flags); 0; }); \ -}) +#define spin_trylock_irqsave(lock, flags) spin_trylock(lock) #define read_trylock(l) spin_trylock(l) #define write_trylock(l) read_trylock(l) |