Commit 7a5e4805 authored by Chris Wilson's avatar Chris Wilson Committed by Keith Packard

drm/i915: Remove unused supported_crtc from intel_load_detect_pipe

... and the no longer relevant comment. The code ceased stealing a pipe
for load detection a long time ago.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarKeith Packard <keithp@keithp.com>
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 8261b191
...@@ -5488,7 +5488,6 @@ bool intel_get_load_detect_pipe(struct intel_encoder *intel_encoder, ...@@ -5488,7 +5488,6 @@ bool intel_get_load_detect_pipe(struct intel_encoder *intel_encoder,
{ {
struct intel_crtc *intel_crtc; struct intel_crtc *intel_crtc;
struct drm_crtc *possible_crtc; struct drm_crtc *possible_crtc;
struct drm_crtc *supported_crtc =NULL;
struct drm_encoder *encoder = &intel_encoder->base; struct drm_encoder *encoder = &intel_encoder->base;
struct drm_crtc *crtc = NULL; struct drm_crtc *crtc = NULL;
struct drm_device *dev = encoder->dev; struct drm_device *dev = encoder->dev;
...@@ -5498,12 +5497,12 @@ bool intel_get_load_detect_pipe(struct intel_encoder *intel_encoder, ...@@ -5498,12 +5497,12 @@ bool intel_get_load_detect_pipe(struct intel_encoder *intel_encoder,
/* /*
* Algorithm gets a little messy: * Algorithm gets a little messy:
*
* - if the connector already has an assigned crtc, use it (but make * - if the connector already has an assigned crtc, use it (but make
* sure it's on first) * sure it's on first)
*
* - try to find the first unused crtc that can drive this connector, * - try to find the first unused crtc that can drive this connector,
* and use that if we find one * and use that if we find one
* - if there are no unused crtcs available, try to use the first
* one we found that supports the connector
*/ */
/* See if we already have a CRTC for this connector */ /* See if we already have a CRTC for this connector */
...@@ -5533,8 +5532,6 @@ bool intel_get_load_detect_pipe(struct intel_encoder *intel_encoder, ...@@ -5533,8 +5532,6 @@ bool intel_get_load_detect_pipe(struct intel_encoder *intel_encoder,
crtc = possible_crtc; crtc = possible_crtc;
break; break;
} }
if (!supported_crtc)
supported_crtc = possible_crtc;
} }
/* /*
......
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