Use msleep instead of tsleep to drop the DRM device lock and avoid a

sleep-with- mutex held. This probably ought to be an os-independent
    sleep function ala DRM_USLEEP.
main
Eric Anholt 2005-04-26 05:11:20 +00:00
parent be9e67a927
commit 31a06d0bac
1 changed files with 5 additions and 0 deletions

View File

@ -1701,8 +1701,13 @@ void radeon_do_release(drm_device_t * dev)
DRM_DEBUG("radeon_do_cp_idle %d\n", ret);
#ifdef __linux__
schedule();
#else
#if defined(__FreeBSD__) && __FreeBSD_version > 500000
msleep(&ret, &dev->dev_lock, PZERO, "rdnrel",
1);
#else
tsleep(&ret, PZERO, "rdnrel", 1);
#endif
#endif
}
radeon_do_cp_stop(dev_priv);