summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLyude Paul <lyude@redhat.com>2026-08-07 00:02:14 -0700
committerPeter Zijlstra <peterz@infradead.org>2026-08-10 12:53:10 +0200
commit5967f4df55521de596cbe34e0c0c96e962ef3f2e (patch)
tree541001322f9cff57859345d784adc111bff1aab5 /tools/perf/scripts/python
parentdf9165ab5254acb2035919c6e0511de799c1e8c1 (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')
0 files changed, 0 insertions, 0 deletions