From: "Jan Beulich" Subject: [PATCH] x86/mce: use cpu_online() instead of cpu_isset(, cpu_online_map) Date: Tue, 06 Jul 2010 16:52:51 +0100 Message-ID: <4C336D730200007800009CAC@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part05287743.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part05287743.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- 2010-06-15.orig/xen/arch/x86/cpu/mcheck/mce.c 2010-06-14 = 08:49:36.000000000 +0200 +++ 2010-06-15/xen/arch/x86/cpu/mcheck/mce.c 2010-07-06 14:44:53.0000000= 00 +0200 @@ -936,7 +936,7 @@ static void do_mc_get_cpu_info(void *v) * Deal with sparse masks, condensed into a contig array. */ while (cpn >=3D 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 >=3D NR_CPUS) return x86_mcerr("do_mca inject: bad target", -EINVAL); =20 - if (!cpu_isset(target, cpu_online_map)) + if (!cpu_online(target)) return x86_mcerr("do_mca inject: target offline", -EINVAL); =20 @@ -1444,7 +1444,7 @@ long do_mca(XEN_GUEST_HANDLE(xen_mc_t) u if (target >=3D NR_CPUS) return x86_mcerr("do_mca #MC: bad target", -EINVAL); =20 - if (!cpu_isset(target, cpu_online_map)) + if (!cpu_online(target)) return x86_mcerr("do_mca #MC: target offline", -EINVAL); =20 add_taint(TAINT_ERROR_INJECT); --=__Part05287743.0__= Content-Type: text/plain; name="x86-mce-cpu-online.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-mce-cpu-online.patch" Signed-off-by: Jan Beulich =0A=0A--- 2010-06-15.orig/x= en/arch/x86/cpu/mcheck/mce.c 2010-06-14 08:49:36.000000000 +0200=0A+++ = 2010-06-15/xen/arch/x86/cpu/mcheck/mce.c 2010-07-06 14:44:53.0000000= 00 +0200=0A@@ -936,7 +936,7 @@ static void do_mc_get_cpu_info(void *v)=0A = * Deal with sparse masks, condensed into a contig array.=0A */=0A = while (cpn >=3D 0) {=0A- if (cpu_isset(cpn, cpu_online_map))=0A+= if (cpu_online(cpn))=0A cindex++;=0A cpn--;=0A = }=0A@@ -1417,7 +1417,7 @@ long do_mca(XEN_GUEST_HANDLE(xen_mc_t) u=0A = if (target >=3D NR_CPUS)=0A return x86_mcerr("do_mca = inject: bad target", -EINVAL);=0A =0A- if (!cpu_isset(target, = cpu_online_map))=0A+ if (!cpu_online(target))=0A return = x86_mcerr("do_mca inject: target offline",=0A = -EINVAL);=0A =0A@@ -1444,7 +1444,7 @@ long do_mca(XEN_GUEST_HANDLE(xen_mc_t= ) u=0A if (target >=3D NR_CPUS)=0A return x86_mcerr("do= _mca #MC: bad target", -EINVAL);=0A =0A- if (!cpu_isset(target, = cpu_online_map))=0A+ if (!cpu_online(target))=0A return = x86_mcerr("do_mca #MC: target offline", -EINVAL);=0A =0A add_taint(= TAINT_ERROR_INJECT);=0A --=__Part05287743.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part05287743.0__=--