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 Avoid sizeof(wait_qu...
details: https://anonhg.NetBSD.org/src/rev/8e37ae49b76e
branches: riastradh-drm2
changeset: 788164:8e37ae49b76e
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:31:24 2013 +0000
description:
Avoid sizeof(wait_queue_head_t) in drm_irq.c.
Use sizeof(*dev->vbl_queue_head) instead to ease transition to
drm_wait compatibility API.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_irq.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r 85d59c252c29 -r 8e37ae49b76e sys/external/bsd/drm2/dist/drm/drm_irq.c
--- a/sys/external/bsd/drm2/dist/drm/drm_irq.c Wed Jul 24 02:31:08 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_irq.c Wed Jul 24 02:31:24 2013 +0000
@@ -229,8 +229,13 @@
dev->num_crtcs = num_crtcs;
+#ifdef __NetBSD__
+ dev->vbl_queue = kmalloc(sizeof(*dev->vbl_queue) * num_crtcs,
+ GFP_KERNEL);
+#else
dev->vbl_queue = kmalloc(sizeof(wait_queue_head_t) * num_crtcs,
GFP_KERNEL);
+#endif
if (!dev->vbl_queue)
goto err;
Home |
Main Index |
Thread Index |
Old Index