Commit 97f9010a authored by Daniel Vetter's avatar Daniel Vetter Committed by Jani Nikula

drm/i915: mdelay(10) considered harmful

I missed this myself when reviewing

commit 237ed86c
Author: Sonika Jindal <sonika.jindal@intel.com>
Date:   Tue Sep 15 09:44:20 2015 +0530

    drm/i915: Check live status before reading edid

Long sleeps like this really shouldn't waste cpu cycles spinning.

Cc: Sonika Jindal <sonika.jindal@intel.com>
Cc: "Wang, Gary C" <gary.c.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1449859455-32609-1-git-send-email-daniel.vetter@ffwll.chReviewed-by: default avatarSonika Jindal <sonika.jindal@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
(cherry picked from commit 71a199ba)
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 57a2af6b
...@@ -1384,7 +1384,7 @@ intel_hdmi_detect(struct drm_connector *connector, bool force) ...@@ -1384,7 +1384,7 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
while (!live_status && --retry) { while (!live_status && --retry) {
live_status = intel_digital_port_connected(dev_priv, live_status = intel_digital_port_connected(dev_priv,
hdmi_to_dig_port(intel_hdmi)); hdmi_to_dig_port(intel_hdmi));
mdelay(10); msleep(10);
} }
if (!live_status) if (!live_status)
......
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