Re: Why does ia64 not use fetchadd in atomic.h?

From: Christoph Lameter <clameter_at_sgi.com>
Date: 2006-06-16 07:28:35
On Thu, 15 Jun 2006, Matthew Wilcox wrote:

> On Thu, Jun 15, 2006 at 01:35:42PM -0700, Christoph Lameter wrote:
> > Why not
> > 
> > #define ia64_atomic_add(__i, __v) ia64_fetchadd(__i, &v->counter, acq)
> 
> Because ia64_fetchadd() only supports 8 different constants?

Right. I forgot about that. Only a call to atomic_add does the fetchadd 
trickery. Thanks.


-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Jun 16 07:29:15 2006

This archive was generated by hypermail 2.1.8 : 2006-06-16 07:29:34 EST