[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] mcheck: Small fix to Intel CMCI code



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1237538694 0
# Node ID c657fc593306b8423b88c55e4dc4fe9617c40e7e
# Parent  3dcb5ad8be0cecc33f2ba2bfb4eb2b79424766ad
mcheck: Small fix to Intel CMCI code

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/cpu/mcheck/mce_intel.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff -r 3dcb5ad8be0c -r c657fc593306 xen/arch/x86/cpu/mcheck/mce_intel.c
--- a/xen/arch/x86/cpu/mcheck/mce_intel.c       Fri Mar 20 08:43:53 2009 +0000
+++ b/xen/arch/x86/cpu/mcheck/mce_intel.c       Fri Mar 20 08:44:54 2009 +0000
@@ -198,7 +198,6 @@ static void cmci_discover(void)
 {
     unsigned long flags;
     int i;
-    struct mc_info *mi = NULL;
     mctelem_cookie_t mctc;
     struct mca_summary bs;
 
@@ -226,7 +225,7 @@ static void cmci_discover(void)
             mctelem_commit(mctc);
             send_guest_global_virq(dom0, VIRQ_MCA);
         } else {
-            x86_mcinfo_dump(mi);
+            x86_mcinfo_dump(mctelem_dataptr(mctc));
             mctelem_dismiss(mctc);
        }
     } else if (mctc != NULL)
@@ -326,7 +325,6 @@ static void intel_init_cmci(struct cpuin
 
 fastcall void smp_cmci_interrupt(struct cpu_user_regs *regs)
 {
-    struct mc_info *mi = NULL;
     mctelem_cookie_t mctc;
     struct mca_summary bs;
 
@@ -341,9 +339,9 @@ fastcall void smp_cmci_interrupt(struct 
             mctelem_commit(mctc);
             send_guest_global_virq(dom0, VIRQ_MCA);
         } else {
-            x86_mcinfo_dump(mi);
+            x86_mcinfo_dump(mctelem_dataptr(mctc));
             mctelem_dismiss(mctc);
-       }
+        }
     } else if (mctc != NULL)
         mctelem_dismiss(mctc);
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.