Re: [PATCH 2/2] rwsem: Move powerpc atomic-long based implementation to asm-generic

2010-08-23 Thread Benjamin Herrenschmidt
On Fri, 2010-08-20 at 08:43 +0200, Sam Ravnborg wrote: > > diff --git a/include/asm-generic/rwsem-cmpxchg.h > > b/include/asm-generic/rwsem-cmpxchg.h > > new file mode 100644 > > index 000..2b1c859 > > --- /dev/null > > +++ b/include/asm-generic/rwsem-cmpxchg.h > > @@ -0,0 +1,183 @@ > > +#ifnd

Re: [PATCH 2/2] rwsem: Move powerpc atomic-long based implementation to asm-generic

2010-08-22 Thread David Miller
From: Benjamin Herrenschmidt Date: Fri, 20 Aug 2010 15:14:55 +1000 > Other architectures who support cmpxchg and atomic_long can > use that directly. > > Signed-off-by: Benjamin Herrenschmidt Acked-by: David S. Miller I'll move sparc64 over to this once it hits Linus's tree.

Re: [PATCH 2/2] rwsem: Move powerpc atomic-long based implementation to asm-generic

2010-08-19 Thread Sam Ravnborg
> diff --git a/include/asm-generic/rwsem-cmpxchg.h > b/include/asm-generic/rwsem-cmpxchg.h > new file mode 100644 > index 000..2b1c859 > --- /dev/null > +++ b/include/asm-generic/rwsem-cmpxchg.h > @@ -0,0 +1,183 @@ > +#ifndef _RWSEM_CMPXCHG_H > +#define _RWSEM_CMPXCHG_H > + > +#ifndef _LINUX_R

[PATCH 2/2] rwsem: Move powerpc atomic-long based implementation to asm-generic

2010-08-19 Thread Benjamin Herrenschmidt
Other architectures who support cmpxchg and atomic_long can use that directly. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/rwsem.h| 184 +-- include/asm-generic/rwsem-cmpxchg.h | 183 ++ 2 files changed,