[PATCH] KVM: Use boot_cpu_data instead of current_cpu_data

current_cpu_data invokes smp_processor_id(), which is inadvisable when
preemption is enabled. Switch to boot_cpu_data instead.

Resolves sourceforge bug 1621401.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Avi Kivity and committed by Linus Torvalds 1e885461 2b7a52a4

+1 -1
+1 -1
drivers/kvm/svm.c
··· 246 246 { 247 247 uint32_t eax, ebx, ecx, edx; 248 248 249 - if (current_cpu_data.x86_vendor != X86_VENDOR_AMD) { 249 + if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) { 250 250 printk(KERN_INFO "has_svm: not amd\n"); 251 251 return 0; 252 252 }