Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Dec 2010 10:18:05 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216374 - head/sys/dev/drm
Message-ID:  <201012111018.oBBAI5aL004344@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Sat Dec 11 10:18:05 2010
New Revision: 216374
URL: http://svn.freebsd.org/changeset/base/216374

Log:
  fix atomic_set_xxx misuse in drm
  
  It seems that atomic_set_xxx and atomic_store_xxx were confused.
  
  Reviewed by:	jhb
  MFC after:	3 weeks

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

Modified: head/sys/dev/drm/drm_irq.c
==============================================================================
--- head/sys/dev/drm/drm_irq.c	Sat Dec 11 10:14:08 2010	(r216373)
+++ head/sys/dev/drm/drm_irq.c	Sat Dec 11 10:18:05 2010	(r216374)
@@ -140,7 +140,7 @@ int drm_vblank_init(struct drm_device *d
 	for (i = 0; i < num_crtcs; i++) {
 		DRM_INIT_WAITQUEUE(&dev->vblank[i].queue);
 		dev->vblank[i].refcount = 0;
-		atomic_set_rel_32(&dev->vblank[i].count, 0);
+		atomic_store_rel_32(&dev->vblank[i].count, 0);
 	}
 	dev->vblank_disable_allowed = 0;
 	DRM_SPINUNLOCK(&dev->vbl_lock);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012111018.oBBAI5aL004344>