1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

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
This commit is contained in:
Andriy Gapon 2010-12-11 10:18:05 +00:00
parent 5579e006db
commit d009878bb9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216374

View File

@ -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);