Author: rnoland
Date: Thu Jun 25 15:36:11 2009
New Revision: 194965
URL: http://svn.freebsd.org/changeset/base/194965

Log:
  Fix one use of atomic for refcount missed in last commit.
  
  MFC after:    3 days

Modified:
  head/sys/dev/drm/drm_irq.c

Modified: head/sys/dev/drm/drm_irq.c
==============================================================================
--- head/sys/dev/drm/drm_irq.c  Thu Jun 25 15:34:17 2009        (r194964)
+++ head/sys/dev/drm/drm_irq.c  Thu Jun 25 15:36:11 2009        (r194965)
@@ -89,7 +89,7 @@ static void vblank_disable_fn(void *arg)
                return;
 
        for (i = 0; i < dev->num_crtcs; i++) {
-               if (atomic_read(&dev->vblank[i].refcount) == 0 &&
+               if (dev->vblank[i].refcount == 0 &&
                    dev->vblank[i].enabled && !dev->vblank[i].inmodeset) {
                        DRM_DEBUG("disabling vblank on crtc %d\n", i);
                        dev->vblank[i].last =
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to