Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S271129AbTHMMOD (ORCPT ); Wed, 13 Aug 2003 08:14:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S271890AbTHMMOD (ORCPT ); Wed, 13 Aug 2003 08:14:03 -0400 Received: from pix-525-pool.redhat.com ([66.187.233.200]:62972 "EHLO lacrosse.corp.redhat.com") by vger.kernel.org with ESMTP id S271129AbTHMMOB (ORCPT ); Wed, 13 Aug 2003 08:14:01 -0400 Date: Wed, 13 Aug 2003 13:13:22 +0100 From: Dave Jones To: Michel D?nzer 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. Message-ID: <20030813121322.GE12953@redhat.com> Mail-Followup-To: Dave Jones , Michel D?nzer , torvalds@transmeta.com, linux-kernel@vger.kernel.org, dri-devel@lists.sourceforge.net References: <1060770126.26452.142.camel@thor.holligenstrasse29.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1060770126.26452.142.camel@thor.holligenstrasse29.lan> User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 772 Lines: 21 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/