summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRichard Lyu <richard.lyu@suse.com>2026-03-11 00:30:43 +0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-03-11 16:34:12 +0100
commit520886a1a6ca16862a0437b4a8fae133a895a9b8 (patch)
treeae60288b2fac70bcfa10fac5bdfdd4ce7c0f9b9e /tools/perf/scripts/python/stackcollapse.py
parentd9a2a92b4209838c513f31eecc6c8bef4a107ab2 (diff)
mtd: nand: Use scoped_guard for mutex in nand_resume
Refactor nand_resume() to use scoped_guard() instead of explicit mutex_lock/unlock. This improves code safety by ensuring the mutex is always released through the RAII-based cleanup infrastructure. The behavior is functionally equivalent. The mutex is released at the end of the scoped block, after which wake_up_all() is called to preserve the original locking semantics. Signed-off-by: Richard Lyu <richard.lyu@suse.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions