summaryrefslogtreecommitdiffstats
path: root/arch/s390/lib
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2014-09-22 14:45:11 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-09-25 10:52:10 +0200
commit2684e73a861fe7b2ab763f442207025a1d9bb6a6 (patch)
tree36a5933a0a696425772f1a644f3223c88aca060f /arch/s390/lib
parent6a5c1482e2b700e89f174ddb42434b37f15abccd (diff)
downloadop-kernel-dev-2684e73a861fe7b2ab763f442207025a1d9bb6a6.zip
op-kernel-dev-2684e73a861fe7b2ab763f442207025a1d9bb6a6.tar.gz
s390/rwlock: remove interrupt-enabling rwlock variant.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/lib')
-rw-r--r--arch/s390/lib/spinlock.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/arch/s390/lib/spinlock.c b/arch/s390/lib/spinlock.c
index 5f63ac5..c717f4a 100644
--- a/arch/s390/lib/spinlock.c
+++ b/arch/s390/lib/spinlock.c
@@ -131,31 +131,6 @@ void _raw_read_lock_wait(arch_rwlock_t *rw)
}
EXPORT_SYMBOL(_raw_read_lock_wait);
-void _raw_read_lock_wait_flags(arch_rwlock_t *rw, unsigned long flags)
-{
- unsigned int owner, old;
- int count = spin_retry;
-
- local_irq_restore(flags);
- owner = 0;
- while (1) {
- if (count-- <= 0) {
- if (owner && !smp_vcpu_scheduled(~owner))
- smp_yield_cpu(~owner);
- count = spin_retry;
- }
- old = ACCESS_ONCE(rw->lock);
- owner = ACCESS_ONCE(rw->owner);
- if ((int) old < 0)
- continue;
- local_irq_disable();
- if (_raw_compare_and_swap(&rw->lock, old, old + 1))
- return;
- local_irq_restore(flags);
- }
-}
-EXPORT_SYMBOL(_raw_read_lock_wait_flags);
-
int _raw_read_trylock_retry(arch_rwlock_t *rw)
{
unsigned int old;
@@ -194,31 +169,6 @@ void _raw_write_lock_wait(arch_rwlock_t *rw)
}
EXPORT_SYMBOL(_raw_write_lock_wait);
-void _raw_write_lock_wait_flags(arch_rwlock_t *rw, unsigned long flags)
-{
- unsigned int owner, old;
- int count = spin_retry;
-
- local_irq_restore(flags);
- owner = 0;
- while (1) {
- if (count-- <= 0) {
- if (owner && !smp_vcpu_scheduled(~owner))
- smp_yield_cpu(~owner);
- count = spin_retry;
- }
- old = ACCESS_ONCE(rw->lock);
- owner = ACCESS_ONCE(rw->owner);
- if (old)
- continue;
- local_irq_disable();
- if (_raw_compare_and_swap(&rw->lock, 0, 0x80000000))
- return;
- local_irq_restore(flags);
- }
-}
-EXPORT_SYMBOL(_raw_write_lock_wait_flags);
-
int _raw_write_trylock_retry(arch_rwlock_t *rw)
{
unsigned int old;
OpenPOWER on IntegriCloud