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
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.
> 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
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,