summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/cpu-features.h
diff options
context:
space:
mode:
authorDavid Daney2013-02-16 23:42:43 +0100
committerJohn Crispin2013-02-19 09:36:36 +0100
commit1e7decdb27ae89b2a0626635a8cf527f930bff1c (patch)
tree6c59de5d008b7021331c3f49348510e6adb6607e /arch/mips/include/asm/cpu-features.h
parentMIPS: ath79: add support for the Qualcomm Atheros AP136-010 board (diff)
downloadkernel-qcow2-linux-1e7decdb27ae89b2a0626635a8cf527f930bff1c.tar.gz
kernel-qcow2-linux-1e7decdb27ae89b2a0626635a8cf527f930bff1c.tar.xz
kernel-qcow2-linux-1e7decdb27ae89b2a0626635a8cf527f930bff1c.zip
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/include/asm/cpu-features.h')
-rw-r--r--arch/mips/include/asm/cpu-features.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cpu-features.h b/arch/mips/include/asm/cpu-features.h
index 00171cddb6d5..c6f64ef0681e 100644
--- a/arch/mips/include/asm/cpu-features.h
+++ b/arch/mips/include/asm/cpu-features.h
@@ -263,4 +263,8 @@
#define cpu_has_perf_cntr_intr_bit (cpu_data[0].options & MIPS_CPU_PCI)
#endif
+#ifndef cpu_has_vz
+#define cpu_has_vz (cpu_data[0].ases & MIPS_ASE_VZ)
+#endif
+
#endif /* __ASM_CPU_FEATURES_H */