]> git.baikalelectronics.ru Git - kernel.git/commitdiff
MIPS: MIPS16e2: Report ASE presence in /proc/cpuinfo
authorMaciej W. Rozycki <macro@imgtec.com>
Sat, 8 Jul 2017 15:00:09 +0000 (16:00 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 11 Jul 2017 11:48:49 +0000 (13:48 +0200)
Only now that both feature determination and unaligned emulation is in
place add reporting to /proc/cpuinfo, so that the presence of "mips16e2"
there not only indicates our recognition of the hardware feature, but
correct unaligned emulation as well.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16757/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/proc.c

index 4eff2aed736019d6f071b00487d46bfdc76a7308..bbd83b810e51965f88174c653dbd9afa4664837b 100644 (file)
@@ -109,6 +109,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
 
        seq_printf(m, "ASEs implemented\t:");
        if (cpu_has_mips16)     seq_printf(m, "%s", " mips16");
+       if (cpu_has_mips16e2)   seq_printf(m, "%s", " mips16e2");
        if (cpu_has_mdmx)       seq_printf(m, "%s", " mdmx");
        if (cpu_has_mips3d)     seq_printf(m, "%s", " mips3d");
        if (cpu_has_smartmips)  seq_printf(m, "%s", " smartmips");