Files
linux/arch/riscv/include/asm
Alexandre Ghiti 546e42c8c6 riscv: Use an atomic xchg in pudp_huge_get_and_clear()
Make sure we return the right pud value and not a value that could
have been overwritten in between by a different core.

Fixes: c3cc2a4a3a ("riscv: Add support for PUD THP")
Cc: stable@vger.kernel.org
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250814-dev-alex-thp_pud_xchg-v1-1-b4704dfae206@rivosinc.com
[pjw@kernel.org: use xchg rather than atomic_long_xchg; avoid atomic op for !CONFIG_SMP like x86]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
2025-09-23 18:25:52 -06:00
..
2025-06-05 11:09:37 -07:00
2025-01-18 12:33:39 -08:00
2022-03-10 09:29:21 -08:00
2024-06-26 08:02:33 -07:00
2024-09-03 07:18:33 -07:00
2024-05-19 14:36:19 -07:00
2025-06-05 11:09:37 -07:00
2025-06-05 11:09:37 -07:00
2025-06-26 16:06:40 +02:00
2022-03-29 14:31:07 -07:00
2025-03-26 15:56:46 -07:00
2025-06-04 15:11:01 -07:00
2024-03-15 10:17:38 -07:00
2025-03-18 12:59:03 +00:00
2024-11-05 12:55:39 +01:00
2024-09-03 07:18:34 -07:00