Module Name: src
Committed By: riastradh
Date: Sun Dec 19 12:41:15 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/include/drm: drm_wait_netbsd.h
Log Message:
drm: Fix comments about wait return values.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 \
src/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h
diff -u src/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h:1.18 src/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h:1.19
--- src/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h:1.18 Sun Dec 19 12:41:07 2021
+++ src/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h Sun Dec 19 12:41:15 2021
@@ -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 @@ DRM_SPIN_WAKEUP_ALL(drm_waitqueue_t *q,
* . -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 @@ DRM_SPIN_WAKEUP_ALL(drm_waitqueue_t *q,
* . 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