diff options
author | Daniel Vetter <[email protected]> | 2015-12-11 19:44:15 +0100 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2015-12-17 16:59:24 +0100 |
commit | 71a199bacb398ee54eeac001699257dda083a455 (patch) | |
tree | 0ffa037deaa85a0bf59aebc78211e37aff1972c7 | |
parent | be69459a8027787b63e7541d53d1ee86ec9c5056 (diff) |
drm/i915: mdelay(10) considered harmful
I missed this myself when reviewing
commit 237ed86c693d8a8e4db476976aeb30df4deac74b
Author: Sonika Jindal <[email protected]>
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 <[email protected]>
Cc: "Wang, Gary C" <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Sonika Jindal <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
-rw-r--r-- | drivers/gpu/drm/i915/intel_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 23f339e04f73..478e31fda067 100644 --- a/drivers/gpu/drm/i915/intel_hdmi.c +++ b/drivers/gpu/drm/i915/intel_hdmi.c @@ -1395,7 +1395,7 @@ intel_hdmi_detect(struct drm_connector *connector, bool force) while (!live_status && --retry) { live_status = intel_digital_port_connected(dev_priv, hdmi_to_dig_port(intel_hdmi)); - mdelay(10); + msleep(10); } if (!live_status) |