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/nouveau Use DRM_SPIN_WAKEUP_O...



details:   https://anonhg.NetBSD.org/src/rev/a7e13f6ed23b
branches:  trunk
changeset: 992761:a7e13f6ed23b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:43:16 2018 +0000

description:
Use DRM_SPIN_WAKEUP_ONE, not wake_up_interruptible.

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r d062bba256b9 -r a7e13f6ed23b sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c     Mon Aug 27 07:43:06 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c     Mon Aug 27 07:43:16 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_usif.c,v 1.4 2018/08/27 07:39:07 riastradh Exp $       */
+/*     $NetBSD: nouveau_usif.c,v 1.5 2018/08/27 07:43:16 riastradh Exp $       */
 
 /*
  * Copyright 2014 Red Hat Inc.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_usif.c,v 1.4 2018/08/27 07:39:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_usif.c,v 1.5 2018/08/27 07:43:16 riastradh Exp $");
 
 #include "nouveau_drm.h"
 #include "nouveau_usif.h"
@@ -117,7 +117,11 @@
                list_add_tail(&ntfy->p->base.link, &filp->event_list);
                filp->event_space -= ntfy->p->e.base.length;
        }
+#ifdef __NetBSD__
+       DRM_SPIN_WAKEUP_ONE(&filp->event_wait, &dev->event_lock);
+#else
        wake_up_interruptible(&filp->event_wait);
+#endif
        spin_unlock_irqrestore(&dev->event_lock, flags);
        atomic_set(&ntfy->enabled, 0);
        return NVIF_NOTIFY_DROP;



Home | Main Index | Thread Index | Old Index