DORMANTno replies

[PATCH] MIPS: Add printing of ISA version in cpuinfo.

From: Steven J. Hill <hidden>
Date: 2012-12-07 05:31:51
Subsystem: mips, the rest · Maintainers: Thomas Bogendoerfer, Linus Torvalds

From: "Steven J. Hill" <redacted>

Display the MIPS ISA version release in the /proc/cpuinfo file.

Signed-off-by: Steven J. Hill <redacted>
---
 arch/mips/kernel/proc.c |    6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c
index 54ac39a..27ce57e 100644
--- a/arch/mips/kernel/proc.c
+++ b/arch/mips/kernel/proc.c
@@ -64,6 +64,12 @@ static int show_cpuinfo(struct seq_file *m, void *v)
 				cpu_data[n].watch_reg_masks[i]);
 		seq_printf(m, "]\n");
 	}
+	if (cpu_has_mips_r) {
+		seq_printf(m, "ISA version\t\t:");
+		if (cpu_has_mips_r1)	seq_printf(m, "%s", " r1");
+		if (cpu_has_mips_r2)	seq_printf(m, "%s", " r2");
+		seq_printf(m, "\n");
+	}
 
 	seq_printf(m, "ASEs implemented\t:");
 	if (cpu_has_mips16)	seq_printf(m, "%s", " mips16");
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help