drm/fence: shut up lockdep
parent
283eaa2559
commit
c395d27a72
|
@ -520,9 +520,10 @@ void drm_fence_manager_init(struct drm_device * dev)
|
||||||
struct drm_fence_class_manager *class;
|
struct drm_fence_class_manager *class;
|
||||||
struct drm_fence_driver *fed = dev->driver->fence_driver;
|
struct drm_fence_driver *fed = dev->driver->fence_driver;
|
||||||
int i;
|
int i;
|
||||||
|
unsigned long flags;
|
||||||
|
|
||||||
rwlock_init(&fm->lock);
|
rwlock_init(&fm->lock);
|
||||||
write_lock(&fm->lock);
|
write_lock_irqsave(&fm->lock, flags);
|
||||||
fm->initialized = 0;
|
fm->initialized = 0;
|
||||||
if (!fed)
|
if (!fed)
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
|
@ -541,7 +542,7 @@ void drm_fence_manager_init(struct drm_device * dev)
|
||||||
|
|
||||||
atomic_set(&fm->count, 0);
|
atomic_set(&fm->count, 0);
|
||||||
out_unlock:
|
out_unlock:
|
||||||
write_unlock(&fm->lock);
|
write_unlock_irqrestore(&fm->lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
void drm_fence_manager_takedown(struct drm_device * dev)
|
void drm_fence_manager_takedown(struct drm_device * dev)
|
||||||
|
|
Loading…
Reference in New Issue