summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-08-05 23:19:22 -0700
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-09-16 02:18:39 +0300
commita3371fac5dd51518de4edcdcc3c7284a5c5a6607 (patch)
tree53561b0a3f9bafc65b6e09f1bdc587df109d70d1 /tools/perf/scripts/python/task-analyzer.py
parentd6479c25eceff5bca10c2fadb2088dcae1f53561 (diff)
platform/x86: thinkpad_acpi: convert mutex_lock() to guard(mutex)
Convert straightforward mutex_lock() and mutex_unlock() usages for hotkey_mutex, tpacpi_inputdev_send_mutex, kbdlight_mutex, lcdshadow_dev lock, and dytc_mutex to guard(mutex) and scoped_guard(mutex) helpers from linux/cleanup.h. This improves code readability and ensures that mutexes are automatically released when exiting their respective scopes. Assisted-by: Antigravity:gemini-3.6-flash Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Tested-by: Ali Ahmet Memiş <aliamemis@disroot.org> Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca> Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca> Link: https://patch.msgid.link/20260806061925.625482-1-dmitry.torokhov@gmail.com [ij: converted hotkey_poll_setup() as well] Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions