diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2024-12-17 13:39:51 -0600 |
---|---|---|
committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-12-19 16:15:32 +0200 |
commit | f947ea8dd657ed70c0c02b35ac485a24366201d3 (patch) | |
tree | 237339bf12d421e3228d2d6a283a4a2e74a67abe /tools/perf/scripts/python | |
parent | 9e0894d07072e50b83ef077ce91e504bdb7484a3 (diff) |
platform/x86/amd: pmc: Use guard(mutex)
Instead of using the `goto label; mutex_unlock()` pattern use
`guard(mutex)` which will release the mutex when it goes out of scope.
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241217194027.1189038-2-superm1@kernel.org
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')
0 files changed, 0 insertions, 0 deletions