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 Caller must also hold vblank_...



details:   https://anonhg.NetBSD.org/src/rev/59698e183a9b
branches:  trunk
changeset: 366300:59698e183a9b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:43:32 2018 +0000

description:
Caller must also hold vblank_time_lock here.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_irq.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r d849967e05f0 -r 59698e183a9b sys/external/bsd/drm2/dist/drm/drm_irq.c
--- a/sys/external/bsd/drm2/dist/drm/drm_irq.c  Mon Aug 27 14:43:15 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_irq.c  Mon Aug 27 14:43:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_irq.c,v 1.14 2018/08/27 14:43:15 riastradh Exp $   */
+/*     $NetBSD: drm_irq.c,v 1.15 2018/08/27 14:43:32 riastradh Exp $   */
 
 /*
  * drm_irq.c IRQ and vblank support
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_irq.c,v 1.14 2018/08/27 14:43:15 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_irq.c,v 1.15 2018/08/27 14:43:32 riastradh Exp $");
 
 #include <drm/drmP.h>
 #include "drm_trace.h"
@@ -205,6 +205,7 @@
        int framedur_ns = vblank->framedur_ns;
 
        assert_spin_locked(&dev->vbl_lock);
+       assert_spin_locked(&dev->vblank_time_lock);
 
        /*
         * Interrupts were disabled prior to this call, so deal with counter



Home | Main Index | Thread Index | Old Index