parisc: Switch to more fine grained lws locks
authorJohn David Anglin <dave.anglin@bell.net>
Fri, 2 Oct 2020 19:21:41 +0000 (21:21 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 15 Oct 2020 06:10:39 +0000 (08:10 +0200)
commit53a42b6324b8ddce1e9d2f34da2ca68ef21c2084
treee56e6b487f238312f4c01b526a65aad48de475aa
parent2a7d4eed5720d163f50b26892abe45b8cf40e849
parisc: Switch to more fine grained lws locks

Increase the number of lws locks to 256 entries (instead of 16) and
choose lock entry based on bits 3-11 (instead of 4-7) of the relevant
address.  With this change we archieve more fine-grained locking in
futex syscalls and thus reduce the number of possible stalls.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/futex.h
arch/parisc/kernel/syscall.S