convert a tsleep back to msleep that got lost in a previous upstream merge.
authoroga <oga@openbsd.org>
Mon, 1 Sep 2008 17:40:26 +0000 (17:40 +0000)
committeroga <oga@openbsd.org>
Mon, 1 Sep 2008 17:40:26 +0000 (17:40 +0000)
Won't sleep with a spinlock here anymore.

sys/dev/pci/drm/radeon_cp.c

index 5c9da60..bb6fdb6 100644 (file)
@@ -1390,7 +1390,8 @@ void radeon_do_release(struct drm_device * dev)
                                mtx_sleep(&ret, &dev->dev_lock, PZERO, "rdnrel",
                                       1);
 #else
-                               tsleep(&ret, PZERO, "rdnrel", 1);
+                               msleep(&ret, &dev->dev_lock, PZERO,
+                                   "rdnrel", 1);
 #endif
 #endif
                        }