diff options
author | Steven J. Hill <Steven.Hill@imgtec.com> | 2013-03-25 14:27:11 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-09 11:55:19 -0400 |
commit | bce860833ab1e40113eb0efab34d0c8f3b0226b1 (patch) | |
tree | 9e66d8016cbc0a23ca99ac030dadecb62cd9a432 /arch/mips/kernel/proc.c | |
parent | 1658f914ff91c3bf572d5ddae3773720f6803d20 (diff) |
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 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) | |||
99 | if (cpu_has_vz) seq_printf(m, "%s", " vz"); | 99 | if (cpu_has_vz) seq_printf(m, "%s", " vz"); |
100 | seq_printf(m, "\n"); | 100 | seq_printf(m, "\n"); |
101 | 101 | ||
102 | if (cpu_has_mmips) { | ||
103 | seq_printf(m, "micromips kernel\t: %s\n", | ||
104 | (read_c0_config3() & MIPS_CONF3_ISA_OE) ? "yes" : "no"); | ||
105 | } | ||
102 | seq_printf(m, "shadow register sets\t: %d\n", | 106 | seq_printf(m, "shadow register sets\t: %d\n", |
103 | cpu_data[n].srsets); | 107 | cpu_data[n].srsets); |
104 | seq_printf(m, "kscratch registers\t: %d\n", | 108 | seq_printf(m, "kscratch registers\t: %d\n", |