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 curproc->p_pid, not c...



details:   https://anonhg.NetBSD.org/src/rev/879c8c1bc4f0
branches:  trunk
changeset: 366039:879c8c1bc4f0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:39:07 2018 +0000

description:
curproc->p_pid, not current->pid.

diffstat:

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

diffs (30 lines):

diff -r acbd90d3f56a -r 879c8c1bc4f0 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:38:56 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c     Mon Aug 27 07:39:07 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_usif.c,v 1.3 2018/08/27 07:35:56 riastradh Exp $       */
+/*     $NetBSD: nouveau_usif.c,v 1.4 2018/08/27 07:39:07 riastradh Exp $       */
 
 /*
  * Copyright 2014 Red Hat Inc.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_usif.c,v 1.3 2018/08/27 07:35:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_usif.c,v 1.4 2018/08/27 07:39:07 riastradh Exp $");
 
 #include "nouveau_drm.h"
 #include "nouveau_usif.h"
@@ -215,7 +215,11 @@
                goto done;
        ntfy->p->base.event = &ntfy->p->e.base;
        ntfy->p->base.file_priv = f;
+#ifdef __NetBSD__
+       ntfy->p->base.pid = curproc->p_pid;
+#else
        ntfy->p->base.pid = current->pid;
+#endif
        ntfy->p->base.destroy =(void(*)(struct drm_pending_event *))kfree;
        ntfy->p->e.base.type = DRM_NOUVEAU_EVENT_NVIF;
        ntfy->p->e.base.length = sizeof(ntfy->p->e.base) + ntfy->reply;



Home | Main Index | Thread Index | Old Index