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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx