diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 7ab72af045ec..a5d664e0b176 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -735,14 +735,6 @@ void intel_ring_begin(struct drm_device *dev, | |||
735 | ring->space -= n; | 735 | ring->space -= n; |
736 | } | 736 | } |
737 | 737 | ||
738 | void intel_ring_emit(struct drm_device *dev, | ||
739 | struct intel_ring_buffer *ring, unsigned int data) | ||
740 | { | ||
741 | unsigned int *virt = ring->virtual_start + ring->tail; | ||
742 | *virt = data; | ||
743 | ring->tail += 4; | ||
744 | } | ||
745 | |||
746 | void intel_ring_advance(struct drm_device *dev, | 738 | void intel_ring_advance(struct drm_device *dev, |
747 | struct intel_ring_buffer *ring) | 739 | struct intel_ring_buffer *ring) |
748 | { | 740 | { |
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index d5568d3766de..9b67eead187e 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h | |||
@@ -106,8 +106,16 @@ int intel_wrap_ring_buffer(struct drm_device *dev, | |||
106 | struct intel_ring_buffer *ring); | 106 | struct intel_ring_buffer *ring); |
107 | void intel_ring_begin(struct drm_device *dev, | 107 | void intel_ring_begin(struct drm_device *dev, |
108 | struct intel_ring_buffer *ring, int n); | 108 | struct intel_ring_buffer *ring, int n); |
109 | void intel_ring_emit(struct drm_device *dev, | 109 | |
110 | struct intel_ring_buffer *ring, u32 data); | 110 | static inline void intel_ring_emit(struct drm_device *dev, |
111 | struct intel_ring_buffer *ring, | ||
112 | unsigned int data) | ||
113 | { | ||
114 | unsigned int *virt = ring->virtual_start + ring->tail; | ||
115 | *virt = data; | ||
116 | ring->tail += 4; | ||
117 | } | ||
118 | |||
111 | void intel_fill_struct(struct drm_device *dev, | 119 | void intel_fill_struct(struct drm_device *dev, |
112 | struct intel_ring_buffer *ring, | 120 | struct intel_ring_buffer *ring, |
113 | void *data, | 121 | void *data, |