Skip to contentSkip to conversation

KVM: SVM: Remove unused svm_features

PATCH Applied Jan Kiszka 2 participants 2 messages Mar 24, 2011

Subsystems (3)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 KVM: SVM: Remove unused svm_features

From: Jan Kiszka <[email protected]>

We use boot_cpu_has now.

---
 arch/x86/kvm/svm.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
arch/x86/kvm/svm.c +0 -3
index 2a19322..cb43e98 100644
@@ -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;
 
Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

From: Jan Kiszka<[email protected]>

We use boot_cpu_has now.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function