diff options
author | Jani Nikula <jani.nikula@intel.com> | 2023-10-02 10:47:04 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2023-10-04 17:27:51 +0200 |
commit | 14aebb78b994fd307ec26f82f9f8ccea2a12c6a1 (patch) | |
tree | 80c745cedcf45d193845904fbf9d2ea1a8a708d1 /drivers/gpu/drm/i915/i915_drv.h | |
parent | drm/i915: allocate i915->gt0 dynamically (diff) | |
download | linux-14aebb78b994fd307ec26f82f9f8ccea2a12c6a1.tar.xz linux-14aebb78b994fd307ec26f82f9f8ccea2a12c6a1.zip |
drm/i915/gt: remove i915->gt0 in favour of i915->gt[0]
Since gt0 == i915->gt[0], just drop the former.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Acked-by: MichaĆ Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/5319364f4c9416fed218382d020a57c5b0a17bee.1696236329.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 70240f71d886..20bbad165d76 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -317,12 +317,6 @@ struct drm_i915_private { struct i915_hwmon *hwmon; - /* Abstract the submission mechanism (legacy ringbuffer or execlists) away */ - struct intel_gt *gt0; - - /* - * i915->gt[0] == i915->gt0 - */ struct intel_gt *gt[I915_MAX_GT]; struct kobject *sysfs_gt; @@ -384,7 +378,7 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) static inline struct intel_gt *to_gt(const struct drm_i915_private *i915) { - return i915->gt0; + return i915->gt[0]; } /* Simple iterator over all initialised engines */ |