diff options
author | Nishanth Aravamudan <nacc@linux.vnet.ibm.com> | 2013-05-03 10:47:56 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-05-05 19:25:38 -0400 |
commit | cbbc6f1b1433ef553d57826eee87a84ca49645ce (patch) | |
tree | d7df866bc2c91474ba698e4335d0cc7f03de9709 /arch/powerpc/include/uapi | |
parent | d82fb31abc46620b7c22758c75707069f2763646 (diff) |
powerpc/cputable: Reserve bits in HWCAP2 for new features
Also, make HTM's presence dependent on the .config option.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/uapi')
-rw-r--r-- | arch/powerpc/include/uapi/asm/cputable.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/include/uapi/asm/cputable.h b/arch/powerpc/include/uapi/asm/cputable.h index ed9dd8156962..5b7657959faa 100644 --- a/arch/powerpc/include/uapi/asm/cputable.h +++ b/arch/powerpc/include/uapi/asm/cputable.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef _UAPI__ASM_POWERPC_CPUTABLE_H | 1 | #ifndef _UAPI__ASM_POWERPC_CPUTABLE_H |
2 | #define _UAPI__ASM_POWERPC_CPUTABLE_H | 2 | #define _UAPI__ASM_POWERPC_CPUTABLE_H |
3 | 3 | ||
4 | /* in AT_HWCAP */ | ||
4 | #define PPC_FEATURE_32 0x80000000 | 5 | #define PPC_FEATURE_32 0x80000000 |
5 | #define PPC_FEATURE_64 0x40000000 | 6 | #define PPC_FEATURE_64 0x40000000 |
6 | #define PPC_FEATURE_601_INSTR 0x20000000 | 7 | #define PPC_FEATURE_601_INSTR 0x20000000 |
@@ -33,4 +34,12 @@ | |||
33 | #define PPC_FEATURE_TRUE_LE 0x00000002 | 34 | #define PPC_FEATURE_TRUE_LE 0x00000002 |
34 | #define PPC_FEATURE_PPC_LE 0x00000001 | 35 | #define PPC_FEATURE_PPC_LE 0x00000001 |
35 | 36 | ||
37 | /* in AT_HWCAP2 */ | ||
38 | #define PPC_FEATURE2_ARCH_2_07 0x80000000 | ||
39 | #define PPC_FEATURE2_HTM 0x40000000 | ||
40 | #define PPC_FEATURE2_DSCR 0x20000000 | ||
41 | #define PPC_FEATURE2_EBB 0x10000000 | ||
42 | #define PPC_FEATURE2_ISEL 0x08000000 | ||
43 | #define PPC_FEATURE2_TAR 0x04000000 | ||
44 | |||
36 | #endif /* _UAPI__ASM_POWERPC_CPUTABLE_H */ | 45 | #endif /* _UAPI__ASM_POWERPC_CPUTABLE_H */ |