summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/proc.c
diff options
context:
space:
mode:
authorSteven J. Hill <Steven.Hill@imgtec.com>2013-03-25 19:27:11 +0100
committerRalf Baechle <ralf@linux-mips.org>2013-05-09 17:55:19 +0200
commitbce860833ab1e40113eb0efab34d0c8f3b0226b1 (patch)
tree9e66d8016cbc0a23ca99ac030dadecb62cd9a432 /arch/mips/kernel/proc.c
parentMIPS: microMIPS: Disable LL/SC and fix linker bug. (diff)
downloadlinux-bce860833ab1e40113eb0efab34d0c8f3b0226b1.tar.xz
linux-bce860833ab1e40113eb0efab34d0c8f3b0226b1.zip
MIPS: microMIPS: Add configuration option for microMIPS kernel.
This adds the option to build the Linux kernel using only the microMIPS ISA. The resulting kernel binary is, at a minimum, 20% smaller than using the MIPS32R2 ISA. Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
Diffstat (limited to '')
-rw-r--r--arch/mips/kernel/proc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c
index 7a54f74b7818..26b19daa1792 100644
--- a/arch/mips/kernel/proc.c
+++ b/arch/mips/kernel/proc.c
@@ -99,6 +99,10 @@ static int show_cpuinfo(struct seq_file *m, void *v)
if (cpu_has_vz) seq_printf(m, "%s", " vz");
seq_printf(m, "\n");
+ if (cpu_has_mmips) {
+ seq_printf(m, "micromips kernel\t: %s\n",
+ (read_c0_config3() & MIPS_CONF3_ISA_OE) ? "yes" : "no");
+ }
seq_printf(m, "shadow register sets\t: %d\n",
cpu_data[n].srsets);
seq_printf(m, "kscratch registers\t: %d\n",