summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2026-09-24 14:30:55 +0800
committerMark Brown <broonie@kernel.org>2026-09-28 19:49:39 +0100
commit9999d5a07ee037d4653c7231884b0a1e45be801c (patch)
treeef4d7491ce09b44b17fbbf60579ed887dceb70b0 /tools/perf/scripts/python
parent555a1bd78bbc234342a8f3324a2487a56a118749 (diff)
regmap: debugfs: use the regmap scoped lock guard
Convert the open-coded map->lock()/map->unlock() users in the debugfs cache_only and cache_bypass write handlers to the regmap scoped guard. regmap_cache_bypass_write_file() uses guard(regmap)() since the locked region runs to the return. regmap_cache_only_write_file() uses scoped_guard(regmap, ...) because the subsequent regcache_sync() must run with the lock released - it takes the regmap lock itself - so it stays outside the guarded scope exactly as before. No functional change. Assisted-by: LLM Signed-off-by: Peng Fan <peng.fan@nxp.com> Link: https://patch.msgid.link/20260924-regmap-lock-guard-v3-4-8a6127223c16@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions