| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] MIPS: Add printing of ISA version in cpuinfo. |
| From: | "Steven J. Hill" <sjhill@mips.com> |
| Date: | Thu, 6 Dec 2012 23:31:36 -0600 |
| Cc: | "Steven J. Hill" <sjhill@mips.com>, ralf@linux-mips.org |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: "Steven J. Hill" <sjhill@mips.com>
Display the MIPS ISA version release in the /proc/cpuinfo file.
Signed-off-by: Steven J. Hill <sjhill@mips.com>
---
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] MIPS: Make CP0 config registers readable via sysfs., Steven J. Hill |
|---|---|
| Next by Date: | Re: [PATCH] OF: MIPS: sead3: Implement OF support., John Crispin |
| Previous by Thread: | [PATCH] MIPS: Make CP0 config registers readable via sysfs., Steven J. Hill |
| Next by Thread: | [mips-sjhill:mti-next 31/35] dma-default.c:(.text+0xb958): undefined reference to `hw_coherentio', kbuild test robot |
| Indexes: | [Date] [Thread] [Top] [All Lists] |