diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2014-11-14 05:10:02 -0500 |
---|---|---|
committer | Markos Chandras <markos.chandras@imgtec.com> | 2015-02-17 10:37:26 -0500 |
commit | 515a6393dbac4f4492237c7b305bbf9c4c558a1c (patch) | |
tree | 1348f7de1523a63126bcaa64bfa399ae5c71cbfe | |
parent | 6ebb496ffc7eeb309a1505bb980e6fb1499eebd7 (diff) |
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>
-rw-r--r-- | arch/mips/include/asm/cpu-features.h | 3 | ||||
-rw-r--r-- | arch/mips/kernel/proc.c | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/arch/mips/include/asm/cpu-features.h b/arch/mips/include/asm/cpu-features.h index 799dc6db7847..08d1bbe905eb 100644 --- a/arch/mips/include/asm/cpu-features.h +++ b/arch/mips/include/asm/cpu-features.h | |||
@@ -171,6 +171,9 @@ | |||
171 | #endif | 171 | #endif |
172 | #endif | 172 | #endif |
173 | 173 | ||
174 | #ifndef cpu_has_mips_1 | ||
175 | # define cpu_has_mips_1 (!cpu_has_mips_r6) | ||
176 | #endif | ||
174 | #ifndef cpu_has_mips_2 | 177 | #ifndef cpu_has_mips_2 |
175 | # define cpu_has_mips_2 (cpu_data[0].isa_level & MIPS_CPU_ISA_II) | 178 | # define cpu_has_mips_2 (cpu_data[0].isa_level & MIPS_CPU_ISA_II) |
176 | #endif | 179 | #endif |
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c index 097fc8d14e42..130af7d26a9c 100644 --- a/arch/mips/kernel/proc.c +++ b/arch/mips/kernel/proc.c | |||
@@ -82,7 +82,9 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
82 | seq_printf(m, "]\n"); | 82 | seq_printf(m, "]\n"); |
83 | } | 83 | } |
84 | 84 | ||
85 | seq_printf(m, "isa\t\t\t: mips1"); | 85 | seq_printf(m, "isa\t\t\t:"); |
86 | if (cpu_has_mips_r1) | ||
87 | seq_printf(m, " mips1"); | ||
86 | if (cpu_has_mips_2) | 88 | if (cpu_has_mips_2) |
87 | seq_printf(m, "%s", " mips2"); | 89 | seq_printf(m, "%s", " mips2"); |
88 | if (cpu_has_mips_3) | 90 | if (cpu_has_mips_3) |
@@ -95,10 +97,14 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
95 | seq_printf(m, "%s", " mips32r1"); | 97 | seq_printf(m, "%s", " mips32r1"); |
96 | if (cpu_has_mips32r2) | 98 | if (cpu_has_mips32r2) |
97 | seq_printf(m, "%s", " mips32r2"); | 99 | seq_printf(m, "%s", " mips32r2"); |
100 | if (cpu_has_mips32r6) | ||
101 | seq_printf(m, "%s", " mips32r6"); | ||
98 | if (cpu_has_mips64r1) | 102 | if (cpu_has_mips64r1) |
99 | seq_printf(m, "%s", " mips64r1"); | 103 | seq_printf(m, "%s", " mips64r1"); |
100 | if (cpu_has_mips64r2) | 104 | if (cpu_has_mips64r2) |
101 | seq_printf(m, "%s", " mips64r2"); | 105 | seq_printf(m, "%s", " mips64r2"); |
106 | if (cpu_has_mips64r6) | ||
107 | seq_printf(m, "%s", " mips64r6"); | ||
102 | seq_printf(m, "\n"); | 108 | seq_printf(m, "\n"); |
103 | 109 | ||
104 | seq_printf(m, "ASEs implemented\t:"); | 110 | seq_printf(m, "ASEs implemented\t:"); |