Re: [PATCH 2/2] locking/rwsem: Disable optimistic spinning for PA-RISC

Peter Zijlstra
2014-06-06T18:01:25Z

On Fri, Jun 06, 2014 at 10:57:07AM -0700, James Bottomley wrote:
> > diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
> > index 29f2e988c56a..407c87d9879a 100644
> > --- a/arch/sparc/Kconfig
> > +++ b/arch/sparc/Kconfig
> > @@ -78,6 +78,7 @@ config SPARC64
^^^^^^^^^^^^^^

> > select HAVE_C_RECORDMCOUNT
> > select NO_BOOTMEM
> > select HAVE_ARCH_AUDITSYSCALL
> > + select ARCH_SUPPORTS_ATOMIC_RMW
>
> Sparc64 does, Sparc32 doesn't, so shouldn't that be
>
> select ARCH_SUPPORTS_ATOMIC_RMW if 64BIT
>
> ?

arch/sparc/Kconfig has 3 large sections:

config SPARC (included in both)
config SPARC32 (specific to 32bit)
config SPARC64 (specific to 64bit)

I added it to the last.