diff options
| author | 2026-06-11 09:00:27 -0700 | |
|---|---|---|
| committer | 2026-06-30 10:57:03 +0200 | |
| commit | 7d3a9ff98898b3521eb5d7a3daf703b383f7935a (patch) | |
| tree | ac6b2889f32665ea32dbe3fb2bdf59dde9b19552 /tools/lib/python/kdoc/python_version.py | |
| parent | perf/x86/intel/uncore: Fix PCI PMU cleanup on setup failure (diff) | |
perf/x86/intel/uncore: Fix refcnt and other cleanups
Fix typo UNCORE_BOX_FLAG_INITIATED to UNCORE_BOX_FLAG_INITIALIZED.
Rename the 'id' parameter in uncore_box_{ref,unref}() to 'die' to
reflect its actual meaning and be consistent with other functions.
box->refcnt is incremented in the PCI PMU register path but has never
been checked or decremented. Although for PCI PMUs box->refcnt
effectively tracks only a single user, add atomic_dec_return() in the
PCI PMU unregister path to make the reference counting complete and
consistent.
Signed-off-by: Zide Chen <zide.chen@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://patch.msgid.link/20260611160033.66760-3-zide.chen@intel.com
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
