diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2013-05-28 19:22:28 -0700 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-05-31 20:54:18 +0200 |
commit | aeb0659338793746b8a4e482fa588ba1dd9ee559 (patch) | |
tree | 6a486fddb36824e36e38179040412974bac3fe89 /drivers/gpu/drm/i915/intel_ringbuffer.h | |
parent | 4848405cced3b46f4ec7d404b8ed5873171ae10a (diff) | |
download | op-kernel-dev-aeb0659338793746b8a4e482fa588ba1dd9ee559.zip op-kernel-dev-aeb0659338793746b8a4e482fa588ba1dd9ee559.tar.gz |
drm/i915: Convert irq_refounct to struct
It's overkill on older gens, but it's useful for newer gens.
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index 1c79520..153b87f 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h @@ -72,7 +72,9 @@ struct intel_ring_buffer { */ u32 last_retired_head; - u32 irq_refcount; /* protected by dev_priv->irq_lock */ + struct { + u32 gt; + } irq_refcount; /* protected by dev_priv->irq_lock */ u32 irq_enable_mask; /* bitmask to enable ring interrupt */ u32 trace_irq_seqno; u32 sync_seqno[I915_NUM_RINGS-1]; |