Files
linux/arch/parisc/kernel
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: 15e64ef652 ("parisc: Add lightweight spinlock checks")
2023-08-14 09:54:49 +02:00
..
2023-06-30 17:14:13 +02:00
2023-06-30 17:14:13 +02:00
2023-06-30 17:14:14 +02:00
2022-01-11 11:57:37 +01:00
2020-10-15 08:10:37 +02:00
2023-05-09 14:04:56 +02:00
2022-12-18 22:18:49 +01:00
2022-05-08 20:01:12 +02:00
2022-03-11 19:49:30 +01:00
2023-06-30 17:14:15 +02:00