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/cpu-probe.c | |
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/cpu-probe.c')
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 2 |
1 files changed, 2 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 | } |