Re: [Dri-devel] [PATCH] cpu_relax whilst in busy-wait loops.

From: Dave Jones
Date: Wed Aug 13 2003 - 07:18:17 EST


On Wed, Aug 13, 2003 at 12:22:06PM +0200, Michel D?nzer wrote:
> > - while ( GAMMA_READ(GAMMA_INFIFOSPACE) < 2);
> > + while ( GAMMA_READ(GAMMA_INFIFOSPACE) < 2)
> > + cpu_relax();
>
> Are you actually using the gamma driver? :) Something like this might be
> useful in other drivers as well?

No, I just stumbled across this, and remembered seeing a similar
patch some time earlier. Indeed, there are probably other places in
DRI that need the same treatment.

Dave

--
Dave Jones http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/