diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-09-19 08:29:31 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-09-25 04:52:05 -0400 |
commit | d59b93da5e572703e1a7311c13dd3472a4e56e30 (patch) | |
tree | 4c75073780f54bc9785433256eee3d6d70eaf868 /arch/s390/kernel | |
parent | 46b05c7bd51edafb8c8da088b49bddf7f78d48f9 (diff) |
s390/rwlock: use directed yield for write-locked rwlocks
Add an owner field to the arch_rwlock_t to be able to pass the timeslice
of a virtual CPU with diagnose 0x9c to the lock owner in case the rwlock
is write-locked. The undirected yield in case the rwlock is acquired
writable but the lock is read-locked is removed.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/smp.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 243c7e512600..abec97b4ddbf 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -333,12 +333,6 @@ int smp_vcpu_scheduled(int cpu) | |||
333 | return pcpu_running(pcpu_devices + cpu); | 333 | return pcpu_running(pcpu_devices + cpu); |
334 | } | 334 | } |
335 | 335 | ||
336 | void smp_yield(void) | ||
337 | { | ||
338 | if (MACHINE_HAS_DIAG44) | ||
339 | asm volatile("diag 0,0,0x44"); | ||
340 | } | ||
341 | |||
342 | void smp_yield_cpu(int cpu) | 336 | void smp_yield_cpu(int cpu) |
343 | { | 337 | { |
344 | if (MACHINE_HAS_DIAG9C) | 338 | if (MACHINE_HAS_DIAG9C) |