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/i915 i915: Fix priolist order...
details: https://anonhg.NetBSD.org/src/rev/a9ec362b83ef
branches: trunk
changeset: 1028853:a9ec362b83ef
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:12:47 2021 +0000
description:
i915: Fix priolist ordering.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_scheduler.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (43 lines):
diff -r 55eb3376d118 -r a9ec362b83ef sys/external/bsd/drm2/dist/drm/i915/i915_scheduler.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_scheduler.c Sun Dec 19 12:12:39 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_scheduler.c Sun Dec 19 12:12:47 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_scheduler.c,v 1.6 2021/12/19 11:39:24 riastradh Exp $ */
+/* $NetBSD: i915_scheduler.c,v 1.7 2021/12/19 12:12:47 riastradh Exp $ */
/*
* SPDX-License-Identifier: MIT
@@ -7,7 +7,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_scheduler.c,v 1.6 2021/12/19 11:39:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_scheduler.c,v 1.7 2021/12/19 12:12:47 riastradh Exp $");
#include <linux/mutex.h>
@@ -90,9 +90,9 @@
const struct i915_priolist *a = va;
const struct i915_priolist *b = vb;
- if (a->priority < b->priority)
+ if (a->priority > b->priority)
return -1;
- if (a->priority > b->priority)
+ if (a->priority < b->priority)
return +1;
return 0;
}
@@ -103,10 +103,10 @@
const struct i915_priolist *p = vp;
const int *priorityp = vk, priority = *priorityp;
- if (p->priority < priority)
- return -1;
if (p->priority > priority)
return -1;
+ if (p->priority < priority)
+ return +1;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index