aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/i915_drm.h
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2012-05-24 15:03:08 -0700
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-05-25 09:55:08 +0200
commit5c81fe85dad3c8c2bcec03e3fc2bfd4ea198763c (patch)
treec1e3c57116b5bb18eacba093653fda1242e353ca /include/drm/i915_drm.h
parentdrm/i915: don't silently ignore sdvo mode_set failures (diff)
downloadlinux-dev-5c81fe85dad3c8c2bcec03e3fc2bfd4ea198763c.tar.xz
linux-dev-5c81fe85dad3c8c2bcec03e3fc2bfd4ea198763c.zip
drm/i915: timeout parameter for seqno wait
Insert a wait parameter in the code so we can possibly timeout on a seqno wait if need be. The code should be functionally the same as before because all the callers will continue to retry if an arbitrary timeout elapses. We'd like to have nanosecond granularity, but the only way to do this is with hrtimer, and that doesn't fit well with the needs of this code. v2: Fix rebase error (Chris) Return proper time even in wedged + signal case (Chris + Ben) Use timespec constructs (Ben) Didn't take Daniel's advice regarding the Frankenstein-ness of the function. I did try his advice, but in the end I liked the way the original code looked, better. v3: Make wakeups far less frequent for infinite waits (Chris) v4: Remove dummy_wait variable (Daniel) Use raw monotonic time instead of jiffies (made the code a bit cleaner) (Ben) Added a couple of warnings (Ben) v5: Remove warnings (Daniel) Use more accurate time diff for default case (Daniel) Bikeshed for setting the return timespec in timeout case (Daniel) s/jiffies/time in one of the comments Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/i915_drm.h')
0 files changed, 0 insertions, 0 deletions