Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm Replace current->pid...
details: https://anonhg.NetBSD.org/src/rev/6c328122ecad
branches: riastradh-drm2
changeset: 788162:6c328122ecad
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:30:54 2013 +0000
description:
Replace current->pid by curproc->pid in drm_irq.c. (Kludge...)
diffstat:
sys/external/bsd/drm2/dist/drm/drm_irq.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (29 lines):
diff -r 16a1045a316f -r 6c328122ecad sys/external/bsd/drm2/dist/drm/drm_irq.c
--- a/sys/external/bsd/drm2/dist/drm/drm_irq.c Wed Jul 24 02:30:39 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_irq.c Wed Jul 24 02:30:54 2013 +0000
@@ -1152,7 +1152,11 @@
}
e->pipe = pipe;
+#ifdef __NetBSD__
+ e->base.pid = curproc->p_pid;
+#else
e->base.pid = current->pid;
+#endif
e->event.base.type = DRM_EVENT_VBLANK;
e->event.base.length = sizeof e->event;
e->event.user_data = vblwait->request.signal;
@@ -1179,8 +1183,13 @@
DRM_DEBUG("event on vblank count %d, current %d, crtc %d\n",
vblwait->request.sequence, seq, pipe);
+#ifdef __NetBSD__
+ trace_drm_vblank_event_queued(curproc->p_pid, pipe,
+ vblwait->request.sequence);
+#else
trace_drm_vblank_event_queued(current->pid, pipe,
vblwait->request.sequence);
+#endif
e->event.sequence = vblwait->request.sequence;
if ((seq - vblwait->request.sequence) <= (1 << 23)) {
Home |
Main Index |
Thread Index |
Old Index