drm/i915: edp resume/On time optimization.
authorAbhay Kumar <abhay.kumar@intel.com>
Sat, 23 Jan 2016 01:39:04 +0000 (17:39 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 12 Feb 2016 16:07:26 +0000 (17:07 +0100)
commitd28d4731ac9f688166daf7ae44d1d4eb060ea64a
treedfa116b319463a7f32e724ab71c5faf3ab44e8ef
parent05fd934ba585ea8c9f129f15f11327adb1f96fe3
drm/i915: edp resume/On time optimization.

Make resume/on codepath not to wait for panel_power_cycle_delay(t11_t12)
if this time is already spent in suspend/poweron time.

v2: Use CLOCK_BOOTTIME and remove jiffies for panel power cycle
    delay calculation(Ville).

v3: Addressed below comments
    1. Tracking time from where last powercycle is initiated.
    2. Used ktime_get_bootime() wrapper for boottime clock.
    3. Used ktime_ms_delta() to get time difference.

v4: Updated v3 change log in detail.

v5: Removed static from panel_power_on_time(Stéphane).

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Abhay Kumar <abhay.kumar@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1453513144-14135-1-git-send-email-abhay.kumar@intel.com
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h