diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/spinlock.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/spinlock.c b/kernel/spinlock.c index 9644a41e0bef..d48143eafbfd 100644 --- a/kernel/spinlock.c +++ b/kernel/spinlock.c | |||
@@ -21,17 +21,6 @@ | |||
21 | #include <linux/debug_locks.h> | 21 | #include <linux/debug_locks.h> |
22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
23 | 23 | ||
24 | /* | ||
25 | * Generic declaration of the raw read_trylock() function, | ||
26 | * architectures are supposed to optimize this: | ||
27 | */ | ||
28 | int __lockfunc generic__raw_read_trylock(raw_rwlock_t *lock) | ||
29 | { | ||
30 | __raw_read_lock(lock); | ||
31 | return 1; | ||
32 | } | ||
33 | EXPORT_SYMBOL(generic__raw_read_trylock); | ||
34 | |||
35 | int __lockfunc _spin_trylock(spinlock_t *lock) | 24 | int __lockfunc _spin_trylock(spinlock_t *lock) |
36 | { | 25 | { |
37 | preempt_disable(); | 26 | preempt_disable(); |