diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-08-29 00:04:18 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-08-29 00:04:18 -0700 |
commit | 2bcd5b5e330843e1e1a5f0a19105ecd33e76b00b (patch) | |
tree | 197982405a8cd77bc857ad18965adab1426adaa6 /linux-core/xgi_fence.c | |
parent | 3383e8bd6bcd2323c81252e617c8522593baf818 (diff) |
Use DRM_SPINLOCK / DRM_UNSPINLOCK macros.
Diffstat (limited to 'linux-core/xgi_fence.c')
-rw-r--r-- | linux-core/xgi_fence.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux-core/xgi_fence.c b/linux-core/xgi_fence.c index e5b545de..42ed814d 100644 --- a/linux-core/xgi_fence.c +++ b/linux-core/xgi_fence.c @@ -41,7 +41,7 @@ static uint32_t xgi_do_flush(struct drm_device * dev, uint32_t class) if ((info == NULL) || (class != 0)) return 0; - spin_lock(&info->fence_lock); + DRM_SPINLOCK(&info->fence_lock); pending_flush_types = fc->pending_flush | ((fc->pending_exe_flush) ? DRM_FENCE_TYPE_EXE : 0); @@ -64,7 +64,7 @@ static uint32_t xgi_do_flush(struct drm_device * dev, uint32_t class) } } - spin_unlock(&info->fence_lock); + DRM_SPINUNLOCK(&info->fence_lock); return fc->pending_flush | ((fc->pending_exe_flush) ? DRM_FENCE_TYPE_EXE : 0); @@ -81,12 +81,12 @@ int xgi_fence_emit_sequence(struct drm_device * dev, uint32_t class, return -EINVAL; - spin_lock(&info->fence_lock); + DRM_SPINLOCK(&info->fence_lock); info->next_sequence++; if (info->next_sequence > BEGIN_BEGIN_IDENTIFICATION_MASK) { info->next_sequence = 1; } - spin_unlock(&info->fence_lock); + DRM_SPINUNLOCK(&info->fence_lock); *sequence = (uint32_t) info->next_sequence; |