Patchwork [15/17] powerpc: Add config option for transactional memory

login
register
mail settings
Submitter Michael Neuling
Date Feb. 13, 2013, 4:31 a.m.
Message ID <1360729895-304-16-git-send-email-mikey@neuling.org>
Download mbox | patch
Permalink /patch/220039/
State Superseded
Headers show

Comments

Michael Neuling - Feb. 13, 2013, 4:31 a.m.
Kconfig option for transactional memory on powerpc.

Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 arch/powerpc/Kconfig |    8 ++++++++
 1 file changed, 8 insertions(+)
Kumar Gala - Feb. 13, 2013, 2:02 p.m.
On Feb 12, 2013, at 10:31 PM, Michael Neuling wrote:

> Kconfig option for transactional memory on powerpc.
> 
> Signed-off-by: Matt Evans <matt@ozlabs.org>
> Signed-off-by: Michael Neuling <mikey@neuling.org>
> ---
> arch/powerpc/Kconfig |    8 ++++++++
> 1 file changed, 8 insertions(+)
> 
> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
> index 4b27edb..fbeb6d2 100644
> --- a/arch/powerpc/Kconfig
> +++ b/arch/powerpc/Kconfig
> @@ -313,6 +313,14 @@ config MATH_EMULATION
> 	  unit, which will allow programs that use floating-point
> 	  instructions to run.
> 
> +config PPC_TRANSACTIONAL_MEM
> +       bool "Transactional Memory support for POWERPC"
> +       depends on PPC64

Should this really depend on PPC_BOOK3S_64 ?

> +       depends on SMP
> +       default n
> +       ---help---
> +         Support user-mode Transactional Memory on POWERPC.
> +
> config 8XX_MINIMAL_FPEMU
> 	bool "Minimal math emulation for 8xx"
> 	depends on 8xx && !MATH_EMULATION
> -- 
> 1.7.10.4
> 
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
Michael Neuling - Feb. 14, 2013, 1:52 a.m.
Kumar Gala <galak@kernel.crashing.org> wrote:

> 
> On Feb 12, 2013, at 10:31 PM, Michael Neuling wrote:
> 
> > Kconfig option for transactional memory on powerpc.
> > 
> > Signed-off-by: Matt Evans <matt@ozlabs.org>
> > Signed-off-by: Michael Neuling <mikey@neuling.org>
> > ---
> > arch/powerpc/Kconfig |    8 ++++++++
> > 1 file changed, 8 insertions(+)
> > 
> > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
> > index 4b27edb..fbeb6d2 100644
> > --- a/arch/powerpc/Kconfig
> > +++ b/arch/powerpc/Kconfig
> > @@ -313,6 +313,14 @@ config MATH_EMULATION
> > 	  unit, which will allow programs that use floating-point
> > 	  instructions to run.
> > 
> > +config PPC_TRANSACTIONAL_MEM
> > +       bool "Transactional Memory support for POWERPC"
> > +       depends on PPC64
> 
> Should this really depend on PPC_BOOK3S_64 ?

OK, thanks.

Mikey

Patch

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 4b27edb..fbeb6d2 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -313,6 +313,14 @@  config MATH_EMULATION
 	  unit, which will allow programs that use floating-point
 	  instructions to run.
 
+config PPC_TRANSACTIONAL_MEM
+       bool "Transactional Memory support for POWERPC"
+       depends on PPC64
+       depends on SMP
+       default n
+       ---help---
+         Support user-mode Transactional Memory on POWERPC.
+
 config 8XX_MINIMAL_FPEMU
 	bool "Minimal math emulation for 8xx"
 	depends on 8xx && !MATH_EMULATION