diff options
author | Michał Winiarski <[email protected]> | 2020-02-19 17:18:21 +0100 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2020-02-26 14:07:50 +0200 |
commit | 19ee5e8da6129d8d828201a12264ab3d09153ec4 (patch) | |
tree | 7d2c2016ea83e5c1f2d643cf514bd36a7a326006 /tools/perf/util/trace-event-scripting.c | |
parent | eee18939e5767dbe3a98b3ea172e7fd7ba7d403c (diff) |
drm/i915/pmu: Avoid using globals for CPU hotplug state
Attempting to bind / unbind module from devices where we have both
integrated and discreete GPU handled by i915 can lead to leaks and
warnings from cpuhp:
Error: Removing state XXX which has instances left.
Let's move the state to i915_pmu.
Fixes: 05488673a4d4 ("drm/i915/pmu: Support multiple GPUs")
Signed-off-by: Michał Winiarski <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Michal Wajdeczko <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit f5a179d4687d4e7bfadd7cbda7ee5d0bad76761f)
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions