From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <17534.32164.268580.217501@cargo.ozlabs.ibm.com> Date: Thu, 1 Jun 2006 15:39:48 +1000 From: Paul Mackerras To: Benjamin Herrenschmidt Subject: Re: [PATCH] use msleep() for RTAS delays In-Reply-To: <1149139866.28307.32.camel@localhost.localdomain> References: <1149103929.2524.8.camel@sinatra.austin.ibm.com> <1149139866.28307.32.camel@localhost.localdomain> Cc: External List List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Benjamin Herrenschmidt writes: > We could either do something like > > for (;;) { > rc = rtas_call(...); > if (!rtas_check_busy(rc)) > break; rtas_check_busy might need some state, such as the number of times we have seen an RTAS_BUSY return value. > Or something inside rtas_call > > rtas_call_waitbusy(...); That's a good idea... Paul.