]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fold wait_for_atomic_us into wait_for_atomic
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Mar 2013 10:31:04 +0000 (11:31 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Mar 2013 15:39:11 +0000 (16:39 +0100)
commita4223256612cdd066ed16bdd27580d91c9a3e1c5
treecf47b6c0e99ee618a9f3e79de5f956156bd3eebb
parente7d8a1439a1101e3bc24239382c5af4b5c97662e
drm/i915: fold wait_for_atomic_us into wait_for_atomic

Since

commit f4f3f47c461e97b34d92d5c13517a6bbe753ea46
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Jul 15 09:42:38 2012 +0100

    drm/i915: Workaround hang with BSD and forcewake on SandyBridge

and

commit d37ba54a0a843d7de89f406120258585075e877f
Author: Ben Widawsky <ben@bwidawsk.net>
Date:   Sat Sep 1 22:59:48 2012 -0700

    drm/i915: use cpu_relax() in wait_for_atomic

these two macros are essentially the same, so unify them. We keep the
_us version since it's a nice documentation for smaller timeouts.

v2: Fixup time unit conversion, _wait_for takes ms (Ville).

Cc: Jack Winter <jbh@alchemy.lu>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_drv.h