diff options
author | rnoland <rnoland@FreeBSD.org> | 2009-03-16 08:19:11 +0000 |
---|---|---|
committer | rnoland <rnoland@FreeBSD.org> | 2009-03-16 08:19:11 +0000 |
commit | 6822cdf60758a683d1cc6e1201ad95dc5172c220 (patch) | |
tree | 1240c8fda05fe17594f5e58e7e7259212928564d /sys/dev/drm/radeon_cp.c | |
parent | b65366a14a6f21a5999990c149175c4b8d047318 (diff) | |
download | FreeBSD-src-6822cdf60758a683d1cc6e1201ad95dc5172c220.zip FreeBSD-src-6822cdf60758a683d1cc6e1201ad95dc5172c220.tar.gz |
Get rid of any remaining PZERO flags in mtx_sleep()
Also, clean up some ifdef mess while I'm here.
MFC after: 3 days
Diffstat (limited to 'sys/dev/drm/radeon_cp.c')
-rw-r--r-- | sys/dev/drm/radeon_cp.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/drm/radeon_cp.c b/sys/dev/drm/radeon_cp.c index 972751c..ec2c2ab 100644 --- a/sys/dev/drm/radeon_cp.c +++ b/sys/dev/drm/radeon_cp.c @@ -1708,26 +1708,14 @@ void radeon_do_release(struct drm_device * dev) if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R600) { while ((ret = r600_do_cp_idle(dev_priv)) != 0) { DRM_DEBUG("radeon_do_cp_idle %d\n", ret); -#ifdef __linux__ - schedule(); -#elsif defined(__FreeBSD__) mtx_sleep(&ret, &dev->dev_lock, 0, "rdnrel", 1); -#else - tsleep(&ret, PZERO, "rdnrel", 1); -#endif } } else { while ((ret = radeon_do_cp_idle(dev_priv)) != 0) { DRM_DEBUG("radeon_do_cp_idle %d\n", ret); -#ifdef __linux__ - schedule(); -#elsif defined(__FreeBSD__) mtx_sleep(&ret, &dev->dev_lock, 0, "rdnrel", 1); -#else - tsleep(&ret, PZERO, "rdnrel", 1); -#endif } } if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R600) { |