diff options
| author | 2025-09-08 18:00:02 -0700 | |
|---|---|---|
| committer | 2025-09-29 09:42:35 +0200 | |
| commit | 4957089a23f41f31f8e7e22802a8ef9f5789c191 (patch) | |
| tree | 9531b4ed88e7710247c3f494720298ecfd3b1d2a /drivers/usb/cdns3/cdns3-debug.h | |
| parent | slab: allow NUMA restricted allocations to use percpu sheaves (diff) | |
| download | linux-rng-4957089a23f41f31f8e7e22802a8ef9f5789c191.tar.xz linux-rng-4957089a23f41f31f8e7e22802a8ef9f5789c191.zip | |
locking/local_lock: Introduce local_lock_is_locked().
Introduce local_lock_is_locked() that returns true when
given local_lock is locked by current cpu (in !PREEMPT_RT) or
by current task (in PREEMPT_RT).
The goal is to detect a deadlock by the caller.
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions
