WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86/mce: use cpu_online() instead of cpu_isset(, cpu_online_map)
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 08 Jul 2010 02:10:49 -0700
Delivery-date: Thu, 08 Jul 2010 02:15:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86/mce: use cpu_online() instead of cpu_isset(, cpu_online_map), Xen patchbot-unstable <=