mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Michel Dänzer" <michel@daenzer.net>
To: davej@redhat.com
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org,
	dri-devel@lists.sourceforge.net
Subject: Re: [Dri-devel] [PATCH] cpu_relax whilst in busy-wait loops.
Date: 13 Aug 2003 12:22:06 +0200	[thread overview]
Message-ID: <1060770126.26452.142.camel@thor.holligenstrasse29.lan> (raw)
In-Reply-To: <E19mCuO-0003dX-00@tetrachloride>

On Mon, 2003-08-11 at 15:40, davej@redhat.com 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.000000000 +0100
> +++ linux-2.5/drivers/char/drm/gamma_dma.c	2003-05-29 14:07:46.000000000 +0100
> @@ -44,9 +44,14 @@ static inline void gamma_dma_dispatch(dr
>  	drm_gamma_private_t *dev_priv =
>  				(drm_gamma_private_t *)dev->dev_private;
>  	mb();
> -	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?


-- 
Earthling Michel Dänzer   \  Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast  \     http://svcs.affero.net/rm.php?r=daenzer


  reply	other threads:[~2003-08-13 10:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11 13:40 davej
2003-08-13 10:22 ` Michel Dänzer [this message]
2003-08-13 12:13   ` [Dri-devel] " Dave Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1060770126.26452.142.camel@thor.holligenstrasse29.lan \
    --to=michel@daenzer.net \
    --cc=davej@redhat.com \
    --cc=dri-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®