Files
linux/include/asm-generic
Kumar Kartikeya Dwivedi 101acd2e78 rqspinlock: Add macros for rqspinlock usage
Introduce helper macros that wrap around the rqspinlock slow path and
provide an interface analogous to the raw_spin_lock API. Note that
in case of error conditions, preemption and IRQ disabling is
automatically unrolled before returning the error back to the caller.

Ensure that in absence of CONFIG_QUEUED_SPINLOCKS support, we fallback
to the test-and-set implementation.

Add some comments describing the subtle memory ordering logic during
unlock, and why it's safe.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20250316040541.108729-17-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2025-03-19 08:03:05 -07:00
..
2024-05-07 14:20:48 +02:00
2024-09-01 20:26:13 -07:00
2024-09-03 21:15:32 -07:00
2025-01-25 20:22:24 -08:00
2024-11-11 07:33:20 -08:00
2024-11-11 07:33:20 -08:00
2024-11-11 21:51:42 +01:00