diff options
author | Waiman Long <longman@redhat.com> | 2017-01-09 16:26:52 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-01-12 09:33:39 +0100 |
commit | 607904c357c61adf20b8fd18af765e501d61a385 (patch) | |
tree | 5910281e8003d67f084842c1b39965fcf4564602 /kernel/locking/spinlock.c | |
parent | Merge branch 'akpm' (patches from Andrew) (diff) | |
download | linux-607904c357c61adf20b8fd18af765e501d61a385.tar.xz linux-607904c357c61adf20b8fd18af765e501d61a385.zip |
locking/spinlocks: Remove the unused spin_lock_bh_nested() API
The spin_lock_bh_nested() API is defined but is not used anywhere
in the kernel. So all spin_lock_bh_nested() and related APIs are
now removed.
Signed-off-by: Waiman Long <longman@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1483975612-16447-1-git-send-email-longman@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | kernel/locking/spinlock.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/locking/spinlock.c b/kernel/locking/spinlock.c index db3ccb1dd614..4b082b5cac9e 100644 --- a/kernel/locking/spinlock.c +++ b/kernel/locking/spinlock.c @@ -363,14 +363,6 @@ void __lockfunc _raw_spin_lock_nested(raw_spinlock_t *lock, int subclass) } EXPORT_SYMBOL(_raw_spin_lock_nested); -void __lockfunc _raw_spin_lock_bh_nested(raw_spinlock_t *lock, int subclass) -{ - __local_bh_disable_ip(_RET_IP_, SOFTIRQ_LOCK_OFFSET); - spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); - LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock); -} -EXPORT_SYMBOL(_raw_spin_lock_bh_nested); - unsigned long __lockfunc _raw_spin_lock_irqsave_nested(raw_spinlock_t *lock, int subclass) { |