• Jesse Barnes's avatar
    drm/i915: don't block resume on fb console resume v2 · 073f34d9
    Jesse Barnes authored
    The console lock can be contended, so rather than prevent other drivers
    after us from being held up, queue the console suspend into the global
    work queue that can happen anytime.  I've measured this to take around
    200ms on my T420.  Combined with the ring freq/turbo change, we should
    save almost 1/2 a second on resume.
    
    v2: use console_trylock() to try to resume the console immediately (Chris)
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    [danvet: move dev_priv->console_resume_work next to the fbdev
    pointer.]
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    073f34d9
i915_drv.h 52.2 KB