]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc: Add new CPU feature bit for transactional memory
authorMichael Neuling <mikey@neuling.org>
Wed, 13 Feb 2013 16:21:29 +0000 (16:21 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 15 Feb 2013 05:58:49 +0000 (16:58 +1100)
Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/cputable.h

index 5f1938fcce406ebf01c3f3f16e3eb2f22fb8fd0a..36360813382c3b241948af970924c9bb776ea330 100644 (file)
@@ -220,6 +220,13 @@ extern const char *powerpc_base_platform;
 #define PPC_FEATURE_HAS_EFP_DOUBLE_COMP 0
 #endif
 
+/* We only set the TM feature if the kernel was compiled with TM supprt */
+#ifdef CONFIG_PPC_TRANSACTIONAL_MEM
+#define CPU_FTR_TM_COMP                CPU_FTR_TM
+#else
+#define CPU_FTR_TM_COMP                0
+#endif
+
 /* 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.