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/radeon Use our version of ini...



details:   https://anonhg.NetBSD.org/src/rev/5bbc97964d55
branches:  trunk
changeset: 366113:5bbc97964d55
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:52:32 2018 +0000

description:
Use our version of initializing an interval tree.

diffstat:

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

diffs (30 lines):

diff -r babb57572414 -r 5bbc97964d55 sys/external/bsd/drm2/dist/drm/radeon/radeon_vm.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_vm.c Mon Aug 27 07:52:20 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_vm.c Mon Aug 27 07:52:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_vm.c,v 1.5 2018/08/27 07:52:20 riastradh Exp $  */
+/*     $NetBSD: radeon_vm.c,v 1.6 2018/08/27 07:52:32 riastradh Exp $  */
 
 /*
  * Copyright 2008 Advanced Micro Devices, Inc.
@@ -28,7 +28,7 @@
  *          Jerome Glisse
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_vm.c,v 1.5 2018/08/27 07:52:20 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_vm.c,v 1.6 2018/08/27 07:52:32 riastradh Exp $");
 
 #include <drm/drmP.h>
 #include <drm/radeon_drm.h>
@@ -1197,7 +1197,11 @@
 #else
        mutex_init(&vm->mutex);
 #endif
+#ifdef __NetBSD__
+       interval_tree_init(&vm->va);
+#else
        vm->va = RB_ROOT;
+#endif
        spin_lock_init(&vm->status_lock);
        INIT_LIST_HEAD(&vm->invalidated);
        INIT_LIST_HEAD(&vm->freed);



Home | Main Index | Thread Index | Old Index