From owner-svn-src-all@FreeBSD.ORG Sat Dec 11 10:18:05 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 769D7106566B; Sat, 11 Dec 2010 10:18:05 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 65FA68FC12; Sat, 11 Dec 2010 10:18:05 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oBBAI5B8004346; Sat, 11 Dec 2010 10:18:05 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oBBAI5aL004344; Sat, 11 Dec 2010 10:18:05 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201012111018.oBBAI5aL004344@svn.freebsd.org> From: Andriy Gapon Date: Sat, 11 Dec 2010 10:18:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216374 - head/sys/dev/drm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Dec 2010 10:18:05 -0000 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);