diff options
author | David Daney <david.daney@cavium.com> | 2013-02-16 17:42:43 -0500 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-02-19 03:36:36 -0500 |
commit | 1e7decdb27ae89b2a0626635a8cf527f930bff1c (patch) | |
tree | 6c59de5d008b7021331c3f49348510e6adb6607e /arch/mips/kernel | |
parent | 27ea052acb9eaca98cc90bf1b8738b6d0ea5bc2f (diff) |
MIPS: Probe for and report hardware virtualization support.
The presence of the MIPS Virtualization Application-Specific Extension
is indicated by CP0_Config3[23]. Probe for this and report it in
/proc/cpuinfo.
Signed-off-by: David Daney <david.daney@cavium.com>
Patchwork: http://patchwork.linux-mips.org/patch/4904/
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/proc.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index ba169022fe1d..0c69d1d14080 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
@@ -442,6 +442,8 @@ static inline unsigned int decode_config3(struct cpuinfo_mips *c) | |||
442 | c->options |= MIPS_CPU_ULRI; | 442 | c->options |= MIPS_CPU_ULRI; |
443 | if (config3 & MIPS_CONF3_ISA) | 443 | if (config3 & MIPS_CONF3_ISA) |
444 | c->options |= MIPS_CPU_MICROMIPS; | 444 | c->options |= MIPS_CPU_MICROMIPS; |
445 | if (config3 & MIPS_CONF3_VZ) | ||
446 | c->ases |= MIPS_ASE_VZ; | ||
445 | 447 | ||
446 | return config3 & MIPS_CONF_M; | 448 | return config3 & MIPS_CONF_M; |
447 | } | 449 | } |
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c index 239ae03f3330..453d55699fef 100644 --- a/arch/mips/kernel/proc.c +++ b/arch/mips/kernel/proc.c | |||
@@ -74,6 +74,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
74 | if (cpu_has_dsp2) seq_printf(m, "%s", " dsp2"); | 74 | if (cpu_has_dsp2) seq_printf(m, "%s", " dsp2"); |
75 | if (cpu_has_mipsmt) seq_printf(m, "%s", " mt"); | 75 | if (cpu_has_mipsmt) seq_printf(m, "%s", " mt"); |
76 | if (cpu_has_mmips) seq_printf(m, "%s", " micromips"); | 76 | if (cpu_has_mmips) seq_printf(m, "%s", " micromips"); |
77 | if (cpu_has_vz) seq_printf(m, "%s", " vz"); | ||
77 | seq_printf(m, "\n"); | 78 | seq_printf(m, "\n"); |
78 | 79 | ||
79 | seq_printf(m, "shadow register sets\t: %d\n", | 80 | seq_printf(m, "shadow register sets\t: %d\n", |