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 In DRM_SPIN_WAIT_ON, don't...



details:   https://anonhg.NetBSD.org/src/rev/dcfde31e9c07
branches:  trunk
changeset: 337162:dcfde31e9c07
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Apr 04 15:46:53 2015 +0000

description:
In DRM_SPIN_WAIT_ON, don't stop after waiting only one tick.

Continue the loop to recheck the condition and count the whole
duration.

diffstat:

 sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r d40e982aaad3 -r dcfde31e9c07 sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h
--- a/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h       Sat Apr 04 15:33:36 2015 +0000
+++ b/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h       Sat Apr 04 15:46:53 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_wait_netbsd.h,v 1.11 2015/02/28 21:30:22 riastradh Exp $   */
+/*     $NetBSD: drm_wait_netbsd.h,v 1.12 2015/04/04 15:46:53 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -147,7 +147,8 @@
                (RET) = -cv_timedwait_sig((Q), &(INTERLOCK)->sl_lock, 1);     \
                if (RET) {                                                    \
                        if ((RET) == -EWOULDBLOCK)                            \
-                               (RET) = (CONDITION) ? 0 : -EBUSY;             \
+                               /* Waited only one tick.  */                  \
+                               continue;                                     \
                        break;                                                \
                }                                                             \
        }                                                                     \



Home | Main Index | Thread Index | Old Index