diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-04-24 21:07:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-04-24 22:25:28 +0100 |
commit | 23c3c3d04fa7fcc60c91f1368cc5652a6774626b (patch) | |
tree | ca635b7ded7f79a7dd40460c6b4505dc4610445f /drivers/gpu/drm/i915/i915_drv.h | |
parent | d91e657876a96af4f00cc374e26a7a9e8c40d6de (diff) | |
download | linux-stable-23c3c3d04fa7fcc60c91f1368cc5652a6774626b.tar.gz linux-stable-23c3c3d04fa7fcc60c91f1368cc5652a6774626b.tar.bz2 linux-stable-23c3c3d04fa7fcc60c91f1368cc5652a6774626b.zip |
drm/i915: Pull the GEM powermangement coupling into its own file
Split out the powermanagement portion (GT wakeref, suspend/resume) of
GEM from i915_gem.c into its own file.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190424200717.1686-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 437e394d9fa6..45e027f45e62 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -2020,6 +2020,12 @@ struct drm_i915_private { */ intel_wakeref_t awake; + ktime_t last_init_time; + + struct i915_vma *scratch; + } gt; + + struct { /** * We leave the user IRQ off as much as possible, * but this means that requests will finish and never @@ -2037,11 +2043,7 @@ struct drm_i915_private { * off the idle_work. */ struct delayed_work idle_work; - - ktime_t last_init_time; - - struct i915_vma *scratch; - } gt; + } gem; /* For i945gm vblank irq vs. C3 workaround */ struct { |