drm_irq.c (194966) | drm_irq.c (216374) |
---|---|
1/*- 2 * Copyright 2003 Eric Anholt 3 * All Rights Reserved. 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a 6 * copy of this software and associated documentation files (the "Software"), 7 * to deal in the Software without restriction, including without limitation 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, --- 12 unchanged lines hidden (view full) --- 21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 * 23 * Authors: 24 * Eric Anholt <anholt@FreeBSD.org> 25 * 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright 2003 Eric Anholt 3 * All Rights Reserved. 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a 6 * copy of this software and associated documentation files (the "Software"), 7 * to deal in the Software without restriction, including without limitation 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, --- 12 unchanged lines hidden (view full) --- 21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 * 23 * Authors: 24 * Eric Anholt <anholt@FreeBSD.org> 25 * 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/drm/drm_irq.c 194966 2009-06-25 15:47:32Z rnoland $"); | 29__FBSDID("$FreeBSD: head/sys/dev/drm/drm_irq.c 216374 2010-12-11 10:18:05Z avg $"); |
30 31/** @file drm_irq.c 32 * Support code for handling setup/teardown of interrupt handlers and 33 * handing interrupt handlers off to the drivers. 34 */ 35 36#include "dev/drm/drmP.h" 37#include "dev/drm/drm.h" --- 97 unchanged lines hidden (view full) --- 135 136 DRM_DEBUG("\n"); 137 138 /* Zero per-crtc vblank stuff */ 139 DRM_SPINLOCK(&dev->vbl_lock); 140 for (i = 0; i < num_crtcs; i++) { 141 DRM_INIT_WAITQUEUE(&dev->vblank[i].queue); 142 dev->vblank[i].refcount = 0; | 30 31/** @file drm_irq.c 32 * Support code for handling setup/teardown of interrupt handlers and 33 * handing interrupt handlers off to the drivers. 34 */ 35 36#include "dev/drm/drmP.h" 37#include "dev/drm/drm.h" --- 97 unchanged lines hidden (view full) --- 135 136 DRM_DEBUG("\n"); 137 138 /* Zero per-crtc vblank stuff */ 139 DRM_SPINLOCK(&dev->vbl_lock); 140 for (i = 0; i < num_crtcs; i++) { 141 DRM_INIT_WAITQUEUE(&dev->vblank[i].queue); 142 dev->vblank[i].refcount = 0; |
143 atomic_set_rel_32(&dev->vblank[i].count, 0); | 143 atomic_store_rel_32(&dev->vblank[i].count, 0); |
144 } 145 dev->vblank_disable_allowed = 0; 146 DRM_SPINUNLOCK(&dev->vbl_lock); 147 148 return 0; 149 150err: 151 drm_vblank_cleanup(dev); --- 346 unchanged lines hidden --- | 144 } 145 dev->vblank_disable_allowed = 0; 146 DRM_SPINUNLOCK(&dev->vbl_lock); 147 148 return 0; 149 150err: 151 drm_vblank_cleanup(dev); --- 346 unchanged lines hidden --- |