diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2025-03-15 21:05:21 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-03-19 08:03:04 -0700 |
| commit | 30ff133277eba8b7f30013c9f27b1c8257418e6a (patch) | |
| tree | ce5b06ac80a9f563cbf4d344cbba7b163e4d9e9f /kernel/bpf | |
| parent | a8fcf2a39bdd751e90657906889bc6619d264c19 (diff) | |
| download | linux-30ff133277eba8b7f30013c9f27b1c8257418e6a.tar.gz linux-30ff133277eba8b7f30013c9f27b1c8257418e6a.tar.bz2 linux-30ff133277eba8b7f30013c9f27b1c8257418e6a.zip | |
rqspinlock: Add rqspinlock.h header
This header contains the public declarations usable in the rest of the
kernel for rqspinlock.
Let's also type alias qspinlock to rqspinlock_t to ensure consistent use
of the new lock type. We want to remove dependence on the qspinlock type
in later patches as we need to provide a test-and-set fallback, hence
begin abstracting away from now onwards.
Reviewed-by: Barret Rhoden <brho@google.com>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20250316040541.108729-6-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf')
| -rw-r--r-- | kernel/bpf/rqspinlock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/bpf/rqspinlock.c b/kernel/bpf/rqspinlock.c index 762108cb0f38..93e31633c2aa 100644 --- a/kernel/bpf/rqspinlock.c +++ b/kernel/bpf/rqspinlock.c @@ -23,6 +23,7 @@ #include <asm/byteorder.h> #include <asm/qspinlock.h> #include <trace/events/lock.h> +#include <asm/rqspinlock.h> /* * Include queued spinlock definitions and statistics code @@ -127,7 +128,7 @@ static __always_inline u32 __pv_wait_head_or_lock(struct qspinlock *lock, * contended : (*,x,y) +--> (*,0,0) ---> (*,0,1) -' : * queue : ^--' : */ -void __lockfunc resilient_queued_spin_lock_slowpath(struct qspinlock *lock, u32 val) +void __lockfunc resilient_queued_spin_lock_slowpath(rqspinlock_t *lock, u32 val) { struct mcs_spinlock *prev, *next, *node; u32 old, tail; |
