Thread (108 messages) 108 messages, 8 authors, 2015-01-13

Re: [PATCH RFC 29/67] MIPS: kernel: proc: Add MIPS R6 support to /proc/cpuinfo

From: Sergei Shtylyov <hidden>
Date: 2014-12-19 11:32:13

Hello.

On 12/18/2014 6:09 PM, Markos Chandras wrote:
Print 'mips64r6' and/or 'mips32r6' if the kernel is running on
a MIPS R6 core.
Signed-off-by: Markos Chandras <redacted>
---
  arch/mips/kernel/proc.c | 9 ++++++++-
  1 file changed, 8 insertions(+), 1 deletion(-)
quoted hunk ↗ jump to hunk
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c
index 097fc8d14e42..b2194770878d 100644
--- a/arch/mips/kernel/proc.c
+++ b/arch/mips/kernel/proc.c
@@ -82,7 +82,10 @@ static int show_cpuinfo(struct seq_file *m, void *v)
  		seq_printf(m, "]\n");
  	}

-	seq_printf(m, "isa\t\t\t: mips1");
+	if (!cpu_has_mips_r6)
+		seq_printf(m, "isa\t\t\t: mips1");
+	else
+		seq_printf(m, "isa\t\t\t:");
    The following seems shorter.

	seq_printf(m, "isa\t\t\t:");
	if (!cpu_has_mips_r6)
		seq_printf(m, " mips1");

[...]

WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help