Skip to content
Commit 7a894c87 authored by Helge Deller's avatar Helge Deller
Browse files

parisc: Fix CONFIG_TLB_PTLOCK to work with lightweight spinlock checks



For the TLB_PTLOCK checks we used an optimization to store the spc
register into the spinlock to unlock it. This optimization works as
long as the lightweight spinlock checks (CONFIG_LIGHTWEIGHT_SPINLOCK_CHECK)
aren't enabled, because they really check if the lock word is zero or
__ARCH_SPIN_LOCK_UNLOCKED_VAL and abort with a kernel crash
("Spinlock was trashed") otherwise.

Drop that optimization to make it possible to activate both checks
at the same time.

Noticed-by: default avatarSam James <sam@gentoo.org>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Tested-by: default avatarSam James <sam@gentoo.org>
Cc: stable@vger.kernel.org # v6.4+
Fixes: 15e64ef6 ("parisc: Add lightweight spinlock checks")
parent 2ccdd1b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment