KVM: SVM: Remove unused svm_features
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 24 Mar 2011 08:45:10 +0000 (09:45 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:56:57 +0000 (07:56 -0400)
We use boot_cpu_has now.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c

index 2a193222c987be03c892124c6aed089bc89f358b..cb43e98eff63929a5e30a37773e9fcf1f7322d03 100644 (file)
@@ -376,7 +376,6 @@ struct svm_cpu_data {
 };
 
 static DEFINE_PER_CPU(struct svm_cpu_data *, svm_data);
-static uint32_t svm_features;
 
 struct svm_init_data {
        int cpu;
@@ -802,8 +801,6 @@ static __init int svm_hardware_setup(void)
                        goto err;
        }
 
-       svm_features = cpuid_edx(SVM_CPUID_FUNC);
-
        if (!boot_cpu_has(X86_FEATURE_NPT))
                npt_enabled = false;