summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2002-10-14 23:35:24 +0000
committerEric Anholt <anholt@freebsd.org>2002-10-14 23:35:24 +0000
commit5e9fad35880e89d428ba917d842d0e9ed9a1be6b (patch)
tree5fabeca5aafcb642a80c11cd606e80c2e30c97ff
parent3d69766ea6df4ab1837f5270beafb13c70ec61e6 (diff)
Fix reversed test that broke vblank waiting on FreeBSD.trunk-20021022
Pointy hat to: anholt
-rw-r--r--bsd-core/drm_os_freebsd.h2
-rw-r--r--bsd/drm_os_freebsd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/bsd-core/drm_os_freebsd.h b/bsd-core/drm_os_freebsd.h
index 1206b25f..ff2a6460 100644
--- a/bsd-core/drm_os_freebsd.h
+++ b/bsd-core/drm_os_freebsd.h
@@ -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; \
diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h
index 1206b25f..ff2a6460 100644
--- a/bsd/drm_os_freebsd.h
+++ b/bsd/drm_os_freebsd.h
@@ -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; \