summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/cpu-features.h
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2014-11-14 10:10:02 (GMT)
committerMarkos Chandras <markos.chandras@imgtec.com>2015-02-17 15:37:26 (GMT)
commit515a6393dbac4f4492237c7b305bbf9c4c558a1c (patch)
tree1348f7de1523a63126bcaa64bfa399ae5c71cbfe /arch/mips/include/asm/cpu-features.h
parent6ebb496ffc7eeb309a1505bb980e6fb1499eebd7 (diff)
downloadlinux-515a6393dbac4f4492237c7b305bbf9c4c558a1c.tar.xz
MIPS: kernel: proc: Add MIPS R6 support to /proc/cpuinfo
Print 'mips64r6' and/or 'mips32r6' if the kernel is running on a MIPS R6 core. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Diffstat (limited to 'arch/mips/include/asm/cpu-features.h')
-rw-r--r--arch/mips/include/asm/cpu-features.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cpu-features.h b/arch/mips/include/asm/cpu-features.h
index 799dc6d..08d1bbe 100644
--- a/arch/mips/include/asm/cpu-features.h
+++ b/arch/mips/include/asm/cpu-features.h
@@ -171,6 +171,9 @@
#endif
#endif
+#ifndef cpu_has_mips_1
+# define cpu_has_mips_1 (!cpu_has_mips_r6)
+#endif
#ifndef cpu_has_mips_2
# define cpu_has_mips_2 (cpu_data[0].isa_level & MIPS_CPU_ISA_II)
#endif