diff options
author | Avi Kivity <avi@qumranet.com> | 2006-12-29 19:49:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-30 13:56:43 -0500 |
commit | 1e885461f02259d75e7480a70d291d2d8aaa938e (patch) | |
tree | 775ae3f9cd24e5f428ffd7f225250f5c85450d00 /drivers/kvm/svm.c | |
parent | 2b7a52a459cb09864b736265bee1af5cef42af66 (diff) |
[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>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 9ec87636ded6..283024ab3ba0 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c | |||
@@ -246,7 +246,7 @@ static int has_svm(void) | |||
246 | { | 246 | { |
247 | uint32_t eax, ebx, ecx, edx; | 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 | printk(KERN_INFO "has_svm: not amd\n"); | 250 | printk(KERN_INFO "has_svm: not amd\n"); |
251 | return 0; | 251 | return 0; |
252 | } | 252 | } |