Fix radeon for BSD.

main
Eric Anholt 2003-01-16 06:20:44 +00:00
parent 826aad0aba
commit 77ea378b09
2 changed files with 10 additions and 2 deletions

View File

@ -1395,7 +1395,11 @@ void radeon_do_release( drm_device_t *dev )
/* Stop the cp */
while ((ret = radeon_do_cp_idle( dev_priv )) != 0) {
DRM_DEBUG("radeon_do_cp_idle %d\n", ret);
schedule(); /* BSD? */
#ifdef __linux__
schedule();
#else
tsleep(&ret, PZERO, "rdnrel", 1);
#endif
}
radeon_do_cp_stop( dev_priv );
radeon_do_engine_reset( dev );

View File

@ -1395,7 +1395,11 @@ void radeon_do_release( drm_device_t *dev )
/* Stop the cp */
while ((ret = radeon_do_cp_idle( dev_priv )) != 0) {
DRM_DEBUG("radeon_do_cp_idle %d\n", ret);
schedule(); /* BSD? */
#ifdef __linux__
schedule();
#else
tsleep(&ret, PZERO, "rdnrel", 1);
#endif
}
radeon_do_cp_stop( dev_priv );
radeon_do_engine_reset( dev );