aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2012-08-20 10:39:11 -0400
committerRalf Baechle <ralf@linux-mips.org>2012-10-11 05:10:43 -0400
commit981ef0de49869c9a60e9b1ff35a734525dd790e0 (patch)
treefe59a62bc980b132474ab2d3d697a4ea206f29b9 /arch
parent475032564ed96c94c085e3e7a90e07d150a7cec9 (diff)
MIPS: proc: Cleanup printing of ASEs.
The number of %s was just getting ridiculous. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/proc.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c
index 35cf2094f9ae..07dff54f2ce8 100644
--- a/arch/mips/kernel/proc.c
+++ b/arch/mips/kernel/proc.c
@@ -64,15 +64,17 @@ static int show_cpuinfo(struct seq_file *m, void *v)
64 cpu_data[n].watch_reg_masks[i]); 64 cpu_data[n].watch_reg_masks[i]);
65 seq_printf(m, "]\n"); 65 seq_printf(m, "]\n");
66 } 66 }
67 seq_printf(m, "ASEs implemented\t:%s%s%s%s%s%s\n", 67
68 cpu_has_mips16 ? " mips16" : "", 68 seq_printf(m, "ASEs implemented\t:");
69 cpu_has_mdmx ? " mdmx" : "", 69 if (cpu_has_mips16) seq_printf(m, "%s", " mips16");
70 cpu_has_mips3d ? " mips3d" : "", 70 if (cpu_has_mdmx) seq_printf(m, "%s", " mdmx");
71 cpu_has_smartmips ? " smartmips" : "", 71 if (cpu_has_mips3d) seq_printf(m, "%s", " mips3d");
72 cpu_has_dsp ? " dsp" : "", 72 if (cpu_has_smartmips) seq_printf(m, "%s", " smartmips");
73 cpu_has_dsp2 ? " dsp2" : "", 73 if (cpu_has_dsp) seq_printf(m, "%s", " dsp");
74 cpu_has_mipsmt ? " mt" : "" 74 if (cpu_has_dsp2) seq_printf(m, "%s", " dsp2");
75 ); 75 if (cpu_has_mipsmt) seq_printf(m, "%s", " mt");
76 seq_printf(m, "\n");
77
76 seq_printf(m, "shadow register sets\t: %d\n", 78 seq_printf(m, "shadow register sets\t: %d\n",
77 cpu_data[n].srsets); 79 cpu_data[n].srsets);
78 seq_printf(m, "kscratch registers\t: %d\n", 80 seq_printf(m, "kscratch registers\t: %d\n",