diff options
| author | 2023-10-23 18:02:55 +0300 | |
|---|---|---|
| committer | 2023-10-30 18:21:02 +0200 | |
| commit | cb476dd1b8b10a40f6ba6e230f0b408916365c1f (patch) | |
| tree | 7db3d2c9331bf4e24d7755c3f5fe9c6d9f1e6dc8 /include/linux/amba/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com | |
| parent | drm/i915/pmu: add pmu_to_i915() helper (diff) | |
drm/i915/pmu: add event_to_pmu() helper
It's tedious to duplicate the container_of() everywhere. Add a helper.
Also do the logical steps of first getting from struct perf_event to
struct i915_pmu, and then from struct i915_pmu to struct
drm_i915_private if needed, instead of perf_event->i915->pmu. Not all
places even need the i915 pointer.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231023150256.438331-2-jani.nikula@intel.com
Diffstat (limited to 'include/linux/amba/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
