Fix reversed test that broke vblank waiting on FreeBSD.
authorEric Anholt <anholt@freebsd.org>
Mon, 14 Oct 2002 23:35:24 +0000 (23:35 +0000)
committerEric Anholt <anholt@freebsd.org>
Mon, 14 Oct 2002 23:35:24 +0000 (23:35 +0000)
Pointy hat to: anholt

bsd-core/drm_os_freebsd.h
bsd/drm_os_freebsd.h

index 1206b25..ff2a646 100644 (file)
@@ -142,7 +142,7 @@ do {                                                                \
 #define DRM_HZ hz
 
 #define DRM_WAIT_ON( ret, queue, timeout, condition )                  \
-while (condition) {                                                    \
+while (!condition) {                                                   \
        ret = tsleep( &(queue), PZERO | PCATCH, "drmwtq", (timeout) );  \
        if ( ret )                                                      \
                return ret;                                             \
index 1206b25..ff2a646 100644 (file)
@@ -142,7 +142,7 @@ do {                                                                \
 #define DRM_HZ hz
 
 #define DRM_WAIT_ON( ret, queue, timeout, condition )                  \
-while (condition) {                                                    \
+while (!condition) {                                                   \
        ret = tsleep( &(queue), PZERO | PCATCH, "drmwtq", (timeout) );  \
        if ( ret )                                                      \
                return ret;                                             \