diff options
author | avg <avg@FreeBSD.org> | 2010-12-11 10:18:05 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2010-12-11 10:18:05 +0000 |
commit | 094d0a5ecf146f46c187f9368951fe8a9227cce8 (patch) | |
tree | 34a582975f68a011e4167caea25b545d357a9614 /sys/dev/drm/drm_irq.c | |
parent | 6d67849166d9c7f5130de4b97d87bf00d71d97e8 (diff) | |
download | FreeBSD-src-094d0a5ecf146f46c187f9368951fe8a9227cce8.zip FreeBSD-src-094d0a5ecf146f46c187f9368951fe8a9227cce8.tar.gz |
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
Diffstat (limited to 'sys/dev/drm/drm_irq.c')
-rw-r--r-- | sys/dev/drm/drm_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/drm_irq.c b/sys/dev/drm/drm_irq.c index 4c1f865..8977bcf 100644 --- a/sys/dev/drm/drm_irq.c +++ b/sys/dev/drm/drm_irq.c @@ -140,7 +140,7 @@ int drm_vblank_init(struct drm_device *dev, int num_crtcs) 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); |