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

[Xen-changelog] [xen-unstable] x86/mce: use cpu_online() instead of cpu_isset(, cpu_online_map)



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1278578711 -3600
# Node ID 806d2952be087bb0b9394d4f85960a15ffb5c09b
# Parent  df63728e1680ce7827bd58f6bda453f70ed41ad9
x86/mce: use cpu_online() instead of cpu_isset(,cpu_online_map)

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/arch/x86/cpu/mcheck/mce.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r df63728e1680 -r 806d2952be08 xen/arch/x86/cpu/mcheck/mce.c
--- a/xen/arch/x86/cpu/mcheck/mce.c     Thu Jul 08 09:44:46 2010 +0100
+++ b/xen/arch/x86/cpu/mcheck/mce.c     Thu Jul 08 09:45:11 2010 +0100
@@ -934,7 +934,7 @@ static void do_mc_get_cpu_info(void *v)
      * Deal with sparse masks, condensed into a contig array.
      */
     while (cpn >= 0) {
-        if (cpu_isset(cpn, cpu_online_map))
+        if (cpu_online(cpn))
             cindex++;
         cpn--;
     }
@@ -1415,7 +1415,7 @@ long do_mca(XEN_GUEST_HANDLE(xen_mc_t) u
         if (target >= NR_CPUS)
             return x86_mcerr("do_mca inject: bad target", -EINVAL);
 
-        if (!cpu_isset(target, cpu_online_map))
+        if (!cpu_online(target))
             return x86_mcerr("do_mca inject: target offline",
                              -EINVAL);
 
@@ -1442,7 +1442,7 @@ long do_mca(XEN_GUEST_HANDLE(xen_mc_t) u
         if (target >= NR_CPUS)
             return x86_mcerr("do_mca #MC: bad target", -EINVAL);
 
-        if (!cpu_isset(target, cpu_online_map))
+        if (!cpu_online(target))
             return x86_mcerr("do_mca #MC: target offline", -EINVAL);
 
         add_taint(TAINT_ERROR_INJECT);

_______________________________________________
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®.