On Mon, 2004-08-23 at 11:30, Ingo Molnar wrote: > i'll put the patch below into the -P8 patch. (change voluntary_resched() > to cond_resched() if you apply this to a vanilla kernel.)
I'll start a kernel build to test this on top of P7... (I was about to ask "what about the other places in radeon_cp.c that can spin for up to the full timeout"? :-) This should fix r128 and mga as well... beautiful. -- Fernando > Ingo > > --- linux/drivers/char/drm/drm_os_linux.h.orig > +++ linux/drivers/char/drm/drm_os_linux.h > @@ -14,7 +14,7 @@ > #define DRM_ERR(d) -(d) > /** Current process ID */ > #define DRM_CURRENTPID current->pid > -#define DRM_UDELAY(d) udelay(d) > +#define DRM_UDELAY(d) do { voluntary_resched(); udelay(d); } > while (0) > /** Read a byte from a MMIO region */ > #define DRM_READ8(map, offset) readb(((unsigned long)(map)->handle) + > (offset)) > /** Read a dword from a MMIO region */ ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel