[01/16] powerpc: Add new CPU feature bit for transactional memory

Submitted by Michael Neuling on Nov. 27, 2012, 2:47 a.m.


Message ID 1353984488-1283-2-git-send-email-mikey@neuling.org
State Changes Requested
Delegated to: Benjamin Herrenschmidt
Headers show

Commit Message

Michael Neuling Nov. 27, 2012, 2:47 a.m.
Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
 arch/powerpc/include/asm/cputable.h |    8 ++++++++
 1 file changed, 8 insertions(+)

Patch hide | download patch | download mbox

diff --git a/arch/powerpc/include/asm/cputable.h b/arch/powerpc/include/asm/cputable.h
index fc4d2c5..f2163da 100644
--- a/arch/powerpc/include/asm/cputable.h
+++ b/arch/powerpc/include/asm/cputable.h
@@ -171,6 +171,7 @@  extern const char *powerpc_base_platform;
 #define CPU_FTR_POPCNTD			LONG_ASM_CONST(0x0800000000000000)
 #define CPU_FTR_ICSWX			LONG_ASM_CONST(0x1000000000000000)
 #define CPU_FTR_VMX_COPY		LONG_ASM_CONST(0x2000000000000000)
+#define CPU_FTR_TM			LONG_ASM_CONST(0x4000000000000000)
 #ifndef __ASSEMBLY__
@@ -216,6 +217,13 @@  extern const char *powerpc_base_platform;
+/* We only set the TM feature if the kernel was compiled with TM supprt */
+#define CPU_FTR_TM_COMP		0
 /* We need to mark all pages as being coherent if we're SMP or we have a
  * 74[45]x and an MPC107 host bridge. Also 83xx and PowerQUICC II
  * require it for PCI "streaming/prefetch" to work properly.