aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/hypfs/hypfs_diag.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2015-08-20 12:57:33 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-10-14 14:32:06 +0200
commitacdc9fc9a8121ce2ebcd7533bd72852c20b353f3 (patch)
treeb1d501fa146502365256a02ac6aa3352ced890fa /arch/s390/hypfs/hypfs_diag.c
parents390/mm: implement soft-dirty bits for user memory change tracking (diff)
downloadlinux-dev-acdc9fc9a8121ce2ebcd7533bd72852c20b353f3.tar.xz
linux-dev-acdc9fc9a8121ce2ebcd7533bd72852c20b353f3.zip
s390/bitops: implement cache friendly test_and_set_bit_lock
The generic implementation for test_and_set_bit_lock in include/asm-generic uses the standard test_and_set_bit operation. This is done with either a 'csg' or a 'loag' instruction. For both version the cache line is fetched exclusively, even if the bit is already set. The result is an increase in cache traffic, for a contented lock this is a bad idea. Acked-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/hypfs/hypfs_diag.c')
0 files changed, 0 insertions, 0 deletions