diff options
| author | Lyude Paul <lyude@redhat.com> | 2026-08-07 00:02:14 -0700 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-08-10 12:53:10 +0200 |
| commit | 5967f4df55521de596cbe34e0c0c96e962ef3f2e (patch) | |
| tree | 541001322f9cff57859345d784adc111bff1aab5 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | df9165ab5254acb2035919c6e0511de799c1e8c1 (diff) | |
rust: sync: Add SpinLockIrq
A variant of `SpinLock` that ensures interrupts are disabled in the
critical section. `lock()` will ensure that either interrupts are
already disabled or disable them. `unlock()` will reverse the respective
operation.
[Boqun: Port to use spin_lock_irq_disable() and
spin_unlock_irq_enable()]
Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Boqun Feng <boqun@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260807070218.27144-18-boqun@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
