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/include/drm drm: Fix comments about wa...
details: https://anonhg.NetBSD.org/src/rev/8435cec7db8d
branches: trunk
changeset: 1029001:8435cec7db8d
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:41:15 2021 +0000
description:
drm: Fix comments about wait return values.
diffstat:
sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r 01eb6397c8ad -r 8435cec7db8d sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h
--- a/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h Sun Dec 19 12:41:07 2021 +0000
+++ b/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h Sun Dec 19 12:41:15 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_wait_netbsd.h,v 1.18 2021/12/19 12:41:07 riastradh Exp $ */
+/* $NetBSD: drm_wait_netbsd.h,v 1.19 2021/12/19 12:41:15 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -116,7 +116,7 @@
* . -EINTR/-ERESTARTSYS if interrupted by a signal, or
* . 0 if the condition was true before or just after the timeout.
*
- * Note that cv_timedwait* return -EWOULDBLOCK, not -EBUSY, on timeout.
+ * Note that cv_timedwait* return EWOULDBLOCK, not EBUSY, on timeout.
*
* Note that ERESTARTSYS is actually ELAST+1 and only used in Linux
* code and must be converted for use in NetBSD code (user or kernel.)
@@ -182,10 +182,10 @@
* . the number of ticks remaining if the condition was true before the
* timeout.
*
- * Contrast DRM_SPIN_WAIT_ON which returns -EINTR/-ERESTARTSYS on signal,
- * -EBUSY on timeout, and zero on success; and cv_*wait*, which return
- * -EINTR/-ERESTARTSYS on signal, -EWOULDBLOCK on timeout, and zero on
- * success.
+ * Contrast DRM_SPIN_WAIT_ON which returns -EINTR/-ERESTARTSYS on
+ * signal, -EBUSY on timeout, and zero on success; and cv_*wait*, which
+ * return EINTR/ERESTARTSYS on signal, EWOULDBLOCK on timeout, and zero
+ * on success.
*
* XXX In retrospect, giving the timed and untimed macros a different
* return convention from one another to match Linux may have been a
Home |
Main Index |
Thread Index |
Old Index