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 drm: tree of mm holes is decr...
details: https://anonhg.NetBSD.org/src/rev/957b277bce18
branches: trunk
changeset: 1028719:957b277bce18
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:51:14 2021 +0000
description:
drm: tree of mm holes is decreasing left to right, not increasing
diffstat:
sys/external/bsd/drm2/dist/drm/drm_mm.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r 72bc3a28049a -r 957b277bce18 sys/external/bsd/drm2/dist/drm/drm_mm.c
--- a/sys/external/bsd/drm2/dist/drm/drm_mm.c Sun Dec 19 11:51:07 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_mm.c Sun Dec 19 11:51:14 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_mm.c,v 1.11 2021/12/19 11:22:15 riastradh Exp $ */
+/* $NetBSD: drm_mm.c,v 1.12 2021/12/19 11:51:14 riastradh Exp $ */
/**************************************************************************
*
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_mm.c,v 1.11 2021/12/19 11:22:15 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_mm.c,v 1.12 2021/12/19 11:51:14 riastradh Exp $");
#include <linux/export.h>
#include <linux/interval_tree_generic.h>
@@ -298,9 +298,9 @@
{
const struct drm_mm_node *a = va, *b = vb;
- if (a->hole_size < b->hole_size)
+ if (a->hole_size > b->hole_size)
return -1;
- if (a->hole_size > b->hole_size)
+ if (a->hole_size < b->hole_size)
return +1;
return (a < b ? -1 : a > b ? +1 : 0);
}
@@ -311,9 +311,9 @@
const struct drm_mm_node *n = vn;
const u64 *k = vk;
- if (n->hole_size < *k)
+ if (n->hole_size > *k)
return -1;
- if (n->hole_size > *k)
+ if (n->hole_size < *k)
return +1;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index