Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Take rdev->fence_lock ...
details: https://anonhg.NetBSD.org/src/rev/4db091b430d4
branches: trunk
changeset: 331044:4db091b430d4
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Jul 28 12:59:39 2014 +0000
description:
Take rdev->fence_lock around the wakeup.
diffstat:
sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 56154b575540 -r 4db091b430d4 sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c Mon Jul 28 11:22:46 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c Mon Jul 28 12:59:39 2014 +0000
@@ -192,7 +192,11 @@
if (wake)
#ifdef __NetBSD__
+ {
+ spin_lock(&rdev->fence_lock);
DRM_SPIN_WAKEUP_ALL(&rdev->fence_queue, &rdev->fence_lock);
+ spin_unlock(&rdev->fence_lock);
+ }
#else
wake_up_all(&rdev->fence_queue);
#endif
Home |
Main Index |
Thread Index |
Old Index