]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Fix mask used to select futex spinlock
authorJohn David Anglin <dave.anglin@bell.net>
Tue, 21 Dec 2021 18:33:16 +0000 (13:33 -0500)
committerHelge Deller <deller@gmx.de>
Tue, 21 Dec 2021 20:15:59 +0000 (21:15 +0100)
commit8c41829b37c8de45df26d1ee4ef45c34f5734abe
treecd9b3ec6f063d9f70d5b2194de11f1e220644fea
parentb8e068c913a4b37ac50b58ccc1e97dcee12eccb9
parisc: Fix mask used to select futex spinlock

The address bits used to select the futex spinlock need to match those used in
the LWS code in syscall.S. The mask 0x3f8 only selects 7 bits.  It should
select 8 bits.

This change fixes the glibc nptl/tst-cond24 and nptl/tst-cond25 tests.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Fixes: b95521a9e7dd ("parisc: Switch to more fine grained lws locks")
Cc: stable@vger.kernel.org # 5.10+
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/futex.h