lkml.org 
[lkml]   [2003]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Dri-devel] [PATCH] cpu_relax whilst in busy-wait loops.
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.039 / U:8.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site