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 radeon_fence_wait retu...
details: https://anonhg.NetBSD.org/src/rev/8edb530839ae
branches: trunk
changeset: 336490:8edb530839ae
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Mar 03 13:57:20 2015 +0000
description:
radeon_fence_wait returns 0, not positive, on success.
diffstat:
sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 0463b1e32e7f -r 8edb530839ae sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c Tue Mar 03 13:23:48 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c Tue Mar 03 13:57:20 2015 +0000
@@ -425,7 +425,12 @@
}
}
spin_unlock(&rdev->fence_lock);
- return r;
+ /*
+ * The timed wait returns 0 on timeout or the positive number
+ * of ticks left (minimum 1) if the condition passed. We
+ * return zero on success.
+ */
+ return (r < 0? r : 0);
}
/**
Home |
Main Index |
Thread Index |
Old Index