diff options
author | Steven J. Hill <Steven.Hill@imgtec.com> | 2013-03-25 18:27:11 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-09 15:55:19 (GMT) |
commit | bce860833ab1e40113eb0efab34d0c8f3b0226b1 (patch) | |
tree | 9e66d8016cbc0a23ca99ac030dadecb62cd9a432 /arch/mips/kernel/proc.c | |
parent | 1658f914ff91c3bf572d5ddae3773720f6803d20 (diff) | |
download | linux-bce860833ab1e40113eb0efab34d0c8f3b0226b1.tar.xz |
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 'arch/mips/kernel/proc.c')
-rw-r--r-- | arch/mips/kernel/proc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c index 7a54f74..26b19da 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", |