Commit 183c9906 authored by Damien Lespiau's avatar Damien Lespiau Committed by Daniel Vetter

drm/i915: Make intel_logical_ring_advance_and_submit() static

This function is only used in intel_lrc.c, so restrict it to that file. The
function was moved around to avoid a forward declaration and group it with its
user.
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent cef437ad
...@@ -785,7 +785,7 @@ int logical_ring_flush_all_caches(struct intel_ringbuffer *ringbuf, ...@@ -785,7 +785,7 @@ int logical_ring_flush_all_caches(struct intel_ringbuffer *ringbuf,
return 0; return 0;
} }
/** /*
* intel_logical_ring_advance_and_submit() - advance the tail and submit the workload * intel_logical_ring_advance_and_submit() - advance the tail and submit the workload
* @ringbuf: Logical Ringbuffer to advance. * @ringbuf: Logical Ringbuffer to advance.
* *
...@@ -794,7 +794,8 @@ int logical_ring_flush_all_caches(struct intel_ringbuffer *ringbuf, ...@@ -794,7 +794,8 @@ int logical_ring_flush_all_caches(struct intel_ringbuffer *ringbuf,
* on a queue waiting for the ELSP to be ready to accept a new context submission. At that * on a queue waiting for the ELSP to be ready to accept a new context submission. At that
* point, the tail *inside* the context is updated and the ELSP written to. * point, the tail *inside* the context is updated and the ELSP written to.
*/ */
void intel_logical_ring_advance_and_submit(struct intel_ringbuffer *ringbuf, static void
intel_logical_ring_advance_and_submit(struct intel_ringbuffer *ringbuf,
struct intel_context *ctx, struct intel_context *ctx,
struct drm_i915_gem_request *request) struct drm_i915_gem_request *request)
{ {
......
...@@ -42,10 +42,6 @@ int intel_logical_rings_init(struct drm_device *dev); ...@@ -42,10 +42,6 @@ int intel_logical_rings_init(struct drm_device *dev);
int logical_ring_flush_all_caches(struct intel_ringbuffer *ringbuf, int logical_ring_flush_all_caches(struct intel_ringbuffer *ringbuf,
struct intel_context *ctx); struct intel_context *ctx);
void intel_logical_ring_advance_and_submit(
struct intel_ringbuffer *ringbuf,
struct intel_context *ctx,
struct drm_i915_gem_request *request);
/** /**
* intel_logical_ring_advance() - advance the ringbuffer tail * intel_logical_ring_advance() - advance the ringbuffer tail
* @ringbuf: Ringbuffer to advance. * @ringbuf: Ringbuffer to advance.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment