svn commit: r194965 - head/sys/dev/drm

Robert Noland rnoland at FreeBSD.org
Thu Jun 25 15:36:12 UTC 2009


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 =


More information about the svn-src-all mailing list