drm/i915: Make dev_priv->mm.wedged an atomic_t
authorBen Gamari <bgamari.foss@gmail.com>
Mon, 14 Sep 2009 21:48:47 +0000 (17:48 -0400)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 17 Sep 2009 21:36:46 +0000 (14:36 -0700)
commitba1234d17b3b1fe7087defb191a3c705f208aca6
tree1d26be1196eeef15dda3e5386cd021d94249f0be
parentf316a42cc49eca73b33d85feb6177e32431747ff
drm/i915: Make dev_priv->mm.wedged an atomic_t

There is a very real possibility that multiple CPUs will notice that the
GPU is wedged. This introduces all sorts of potential race conditions.
Make the wedged flag atomic to mitigate this risk.

Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_irq.c