From: "Jan Beulich" <JBeulich@novell.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] x86/mce: use cpu_online() instead of cpu_isset(, cpu_online_map)
Date: Tue, 06 Jul 2010 16:52:51 +0100 [thread overview]
Message-ID: <4C336D730200007800009CAC@vpn.id2.novell.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]
Signed-off-by: Jan Beulich <jbeulich@novell.com>
--- 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.000000000 +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 >= 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);
[-- Attachment #2: x86-mce-cpu-online.patch --]
[-- Type: text/plain, Size: 1237 bytes --]
Signed-off-by: Jan Beulich <jbeulich@novell.com>
--- 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.000000000 +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 >= 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);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2010-07-06 15:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C336D730200007800009CAC@vpn.id2.novell.com \
--to=jbeulich@novell.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).