Re: [PATCH v7] introduce macro spin_event_timeout()

2009-05-19 Thread Grant Likely
On Mon, May 18, 2009 at 9:57 PM, Sean MacLennan smaclen...@pikatech.com wrote: On Mon, 18 May 2009 20:58:03 -0600 Grant Likely grant.lik...@secretlab.ca wrote: Then let it lie fallow on the list and in patchwork.  It is published, and people know that it is available (I'll certainly consider

Re: [PATCH v7] introduce macro spin_event_timeout()

2009-05-18 Thread Timur Tabi
On Thu, May 14, 2009 at 11:10 AM, Grant Likely grant.lik...@secretlab.ca wrote: In other words, write your patches which use it and submit the lot as a patch series with this patch as the first.  That gives some evidence that this macro will actually be used and useful. This is going to be

Re: [PATCH v7] introduce macro spin_event_timeout()

2009-05-18 Thread Grant Likely
On Mon, May 18, 2009 at 4:49 PM, Timur Tabi ti...@freescale.com wrote: On Thu, May 14, 2009 at 11:10 AM, Grant Likely grant.lik...@secretlab.ca wrote: In other words, write your patches which use it and submit the lot as a patch series with this patch as the first.  That gives some evidence

Re: [PATCH v7] introduce macro spin_event_timeout()

2009-05-14 Thread Grant Likely
On Tue, May 5, 2009 at 3:53 PM, Timur Tabi ti...@freescale.com wrote: The macro spin_event_timeout() takes a condition and timeout value (in microseconds) as parameters.  It spins until either the condition is true or the timeout expires.  It returns the result of the condition when the loop

Re: [PATCH v7] introduce macro spin_event_timeout()

2009-05-14 Thread Timur Tabi
Grant Likely wrote: This version looks good to me. Who's the first user? (I'd like to see that something is ready to use this before merging it) I was going to do it the other way around - wait until this patch is merged, and then update some code to use it. After all, it's easier to use a

[PATCH v7] introduce macro spin_event_timeout()

2009-05-05 Thread Timur Tabi
The macro spin_event_timeout() takes a condition and timeout value (in microseconds) as parameters. It spins until either the condition is true or the timeout expires. It returns the result of the condition when the loop was terminated. This primary purpose of this macro is to poll on a

Re: [PATCH v7] introduce macro spin_event_timeout()

2009-05-05 Thread Sean MacLennan
On Tue, 5 May 2009 16:53:05 -0500 Timur Tabi ti...@freescale.com wrote: The macro spin_event_timeout() takes a condition and timeout value (in microseconds) as parameters. It spins until either the condition is true or the timeout expires. It returns the result of the condition when the