Re: [patch v2 22/35] Hexagon: Add locking types and functions

Arnd Bergmann
2011-08-31T14:09:55Z

On Tuesday 30 August 2011, Richard Kuo wrote:
> We pretty much just reused the PPC version of rwsem.h. Spinlocks use ll/sc.
>
> Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
>
> ---
> arch/hexagon/include/asm/rwsem.h | 132 +++++++++++++++++++++
> arch/hexagon/include/asm/spinlock.h | 186 ++++++++++++++++++++++++++++++
> arch/hexagon/include/asm/spinlock_types.h | 42 ++++++
> 3 files changed, 360 insertions(+)

If you have reused an existing version of the rwsem.h file, please move that
into asm-generic and change powerpc and hexagon to just use it from there.

Arnd