Helge Deller 7a894c8737 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: Sam James <sam@gentoo.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Tested-by: Sam James <sam@gentoo.org>
Cc: stable@vger.kernel.org # v6.4+
Fixes: 15e64ef6520e ("parisc: Add lightweight spinlock checks")
2023-08-14 09:54:49 +02:00
..
2023-08-13 08:56:24 -07:00
2023-07-06 10:06:04 -07:00
2023-08-02 18:21:12 -07:00
2023-08-12 09:18:47 -07:00
2023-07-01 21:12:32 -07:00
2023-06-28 20:35:21 -07:00
2023-08-12 09:18:47 -07:00
2023-07-24 14:50:02 +02:00
2023-06-29 16:34:12 -07:00
2023-08-12 09:18:47 -07:00
2023-06-29 16:34:12 -07:00
2023-07-12 16:28:53 -07:00
2023-08-11 09:12:44 -07:00
2023-08-03 09:06:38 -07:00
2023-08-12 09:18:47 -07:00
2023-08-12 09:18:47 -07:00