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: one mmmore order botch
details: https://anonhg.NetBSD.org/src/rev/a2060cfc3887
branches: trunk
changeset: 1028721:a2060cfc3887
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:51:32 2021 +0000
description:
drm: one mmmore order botch
diffstat:
sys/external/bsd/drm2/dist/drm/drm_mm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a8bca4f12b9d -r a2060cfc3887 sys/external/bsd/drm2/dist/drm/drm_mm.c
--- a/sys/external/bsd/drm2/dist/drm/drm_mm.c Sun Dec 19 11:51:22 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_mm.c Sun Dec 19 11:51:32 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_mm.c,v 1.13 2021/12/19 11:51:22 riastradh Exp $ */
+/* $NetBSD: drm_mm.c,v 1.14 2021/12/19 11:51:32 riastradh Exp $ */
/**************************************************************************
*
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_mm.c,v 1.13 2021/12/19 11:51:22 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_mm.c,v 1.14 2021/12/19 11:51:32 riastradh Exp $");
#include <linux/export.h>
#include <linux/interval_tree_generic.h>
@@ -401,7 +401,7 @@
static struct drm_mm_node *best_hole(struct drm_mm *mm, u64 size)
{
#ifdef __NetBSD__
- return rb_tree_find_node_geq(&mm->holes_size.rb_root.rbr_tree, &size);
+ return rb_tree_find_node_leq(&mm->holes_size.rb_root.rbr_tree, &size);
#else
struct rb_node *rb = mm->holes_size.rb_root.rb_node;
struct drm_mm_node *best = NULL;
Home |
Main Index |
Thread Index |
Old Index