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/i915 Lock around use of irq_q...
details: https://anonhg.NetBSD.org/src/rev/d1e6abbdfc09
branches: trunk
changeset: 366321:d1e6abbdfc09
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 14:49:05 2018 +0000
description:
Lock around use of irq_queue.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 5d87979d7078 -r d1e6abbdfc09 sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c Mon Aug 27 14:48:47 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c Mon Aug 27 14:49:05 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_gpu_error.c,v 1.8 2018/08/27 07:09:28 riastradh Exp $ */
+/* $NetBSD: i915_gpu_error.c,v 1.9 2018/08/27 14:49:05 riastradh Exp $ */
/*
* Copyright (c) 2008 Intel Corporation
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gpu_error.c,v 1.8 2018/08/27 07:09:28 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gpu_error.c,v 1.9 2018/08/27 14:49:05 riastradh Exp $");
#include <sys/param.h>
@@ -929,8 +929,10 @@
}
#ifdef __NetBSD__
+ spin_lock(&dev_priv->irq_lock);
ering->waiting = DRM_SPIN_WAITERS_P(&ring->irq_queue,
&dev_priv->irq_lock);
+ spin_unlock(&dev_priv->irq_lock);
#else
ering->waiting = waitqueue_active(&ring->irq_queue);
#endif
Home |
Main Index |
Thread Index |
Old Index