Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1e885461f02259d75e7480a70d291d2d8aaa938e
Commit:     1e885461f02259d75e7480a70d291d2d8aaa938e
Parent:     2b7a52a459cb09864b736265bee1af5cef42af66
Author:     Avi Kivity <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 29 16:49:34 2006 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sat Dec 30 10:56:43 2006 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 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 9ec8763..283024a 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -246,7 +246,7 @@ static int has_svm(void)
 {
        uint32_t eax, ebx, ecx, edx;
 
-       if (current_cpu_data.x86_vendor != X86_VENDOR_AMD) {
+       if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) {
                printk(KERN_INFO "has_svm: not amd\n");
                return 0;
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to