[Intel-gfx] [PATCH 2/3] drm/i915: add the FBC mutex
Chris Wilson
chris at chris-wilson.co.uk
Wed Jun 17 00:47:25 PDT 2015
On Tue, Jan 02, 2001 at 04:58:58AM -0200, Paulo Zanoni wrote:
> @@ -1619,7 +1621,11 @@ static int i915_fbc_fc_get(void *data, u64 *val)
> return -ENODEV;
>
> drm_modeset_lock_all(dev);
> + mutex_lock(&dev_priv->fbc.lock);
> +
> *val = dev_priv->fbc.false_color;
> +
> + mutex_unlock(&dev_priv->fbc.lock);
> drm_modeset_unlock_all(dev);
A read of of a single value doesn't need any of these locks.
>
> return 0;
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list