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

2003-08-14 Thread Ian Romanick
Michel Dnzer wrote: On Mon, 2003-08-11 at 15:40, [EMAIL PROTECTED] wrote: diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/char/drm/gamma_dma.c linux-2.5/drivers/char/drm/gamma_dma.c -- bk-linus/drivers/char/drm/gamma_dma.c2003-05-31 15:58:40.0 +0100 +++

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

2003-08-14 Thread davej
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/char/drm/gamma_dma.c linux-2.5/drivers/char/drm/gamma_dma.c --- bk-linus/drivers/char/drm/gamma_dma.c 2003-05-31 15:58:40.0 +0100 +++ linux-2.5/drivers/char/drm/gamma_dma.c 2003-05-29 14:07:46.0 +0100 @@

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

2003-08-14 Thread Dave Jones
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

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

2003-08-14 Thread Alan Cox
On Mer, 2003-08-13 at 18:15, Ian Romanick wrote: Are you actually using the gamma driver? :) Something like this might be useful in other drivers as well? What exactly *is* cpu_relax? Is it available on older kernels as well? I'm not sure how useful it would be because I don't think

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

2003-08-14 Thread Michel Dänzer
On Mon, 2003-08-11 at 15:40, [EMAIL PROTECTED] wrote: diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/char/drm/gamma_dma.c linux-2.5/drivers/char/drm/gamma_dma.c -- bk-linus/drivers/char/drm/gamma_dma.c 2003-05-31 15:58:40.0 +0100 +++