Skip to contentSkip to conversation

x86/mce: use cpu_online() instead of cpu_isset(, cpu_online_map)

PATCH New Jan Beulich 1 participant 1 message Jul 6, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/mce: use cpu_online() instead of cpu_isset(, cpu_online_map)

xen/arch/x86/cpu/mcheck/mce.c +3 -3
@@ -936,7 +936,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--;
     }
@@ -1417,7 +1417,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);
 
@@ -1444,7 +1444,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/arch/x86/cpu/mcheck/mce.c +3 -3
@@ -936,7 +936,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--;
     }
@@ -1417,7 +1417,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);
 
@@ -1444,7 +1444,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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel