linux/arch/s390
Martin Schwidefsky bae8f56734 s390/spinlock,rwlock: always to a load-and-test first
In case a lock is contended it is better to do a load-and-test first
before trying to get the lock with compare-and-swap. This helps to avoid
unnecessary cache invalidations of the cacheline for the lock if the
CPU has to wait for the lock. For an uncontended lock doing the
compare-and-swap directly is a bit better, if the CPU does not have the
cacheline in its cache yet the compare-and-swap will get it read-write
immediately while a load-and-test would get it read-only first.

Always to the load-and-test first to avoid the cacheline invalidations
for the contended case outweight the potential read-only to read-write
cacheline upgrade for the uncontended case.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2014-05-20 08:58:53 +02:00
..
appldata s390/appldata: add slab.h for kzalloc/kfree 2014-05-20 08:58:51 +02:00
boot s390/boot: Install bzImage as default kernel image 2013-11-15 14:08:36 +01:00
configs Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-04-12 14:49:50 -07:00
crypto crypto: s390 - fix des and des3_ede ctr concurrency issue 2014-01-30 21:45:14 +08:00
hypfs hypfs: Add clarification for "weight_min" attribute 2014-03-17 15:53:03 +01:00
include s390/spinlock,rwlock: always to a load-and-test first 2014-05-20 08:58:53 +02:00
kernel s390: split TIF bits into CIF, PIF and TIF bits 2014-05-20 08:58:47 +02:00
kvm s390: split TIF bits into CIF, PIF and TIF bits 2014-05-20 08:58:47 +02:00
lib s390/spinlock,rwlock: always to a load-and-test first 2014-05-20 08:58:53 +02:00
math-emu s390: fix save and restore of the floating-point-control register 2013-10-24 17:17:11 +02:00
mm s390: split TIF bits into CIF, PIF and TIF bits 2014-05-20 08:58:47 +02:00
net s390/bpf,jit: initialize A register if 1st insn is BPF_S_LDX_B_MSH 2014-04-25 14:03:25 +02:00
oprofile s390/irq: Use defines for external interruption codes 2014-04-03 14:30:52 +02:00
pci s390/pci: add some new arch specific pci attributes 2014-05-20 08:58:50 +02:00
defconfig s390: update defconfigs 2014-03-17 15:52:57 +01:00
Kbuild
Kconfig s390/dump: Remove CONFIG_ZFCPDUMP 2014-05-20 08:58:43 +02:00
Kconfig.debug Kconfig: consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKS 2013-04-30 17:04:09 -07:00
Makefile s390: allow to set gcc -mtune flag 2013-10-31 09:54:01 +01:00