From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ross Lagerwall <ross.lagerwall@citrix.com>, xen-devel@lists.xen.org
Cc: Jan Beulich <jbeulich@suse.com>
Subject: Re: [PATCH v2] x86: Fixup IRQs when CPUs go down during shutdown
Date: Wed, 2 Dec 2015 13:53:41 +0000 [thread overview]
Message-ID: <565EF7E5.9020305@citrix.com> (raw)
In-Reply-To: <1449063981-31486-1-git-send-email-ross.lagerwall@citrix.com>
On 02/12/15 13:46, Ross Lagerwall wrote:
> @@ -298,6 +299,13 @@ static void stop_this_cpu(void *dummy)
> void smp_send_stop(void)
> {
> int timeout = 10;
> + cpumask_t online;
> +
> + cpumask_clear(&online);
> + cpumask_set_cpu(smp_processor_id(), &online);
You can avoid this intermediate variable with cpumask_of(smp_processor_id())
There are a set of pre-canned cpumasks with a single cpu set.
~Andrew
next prev parent reply other threads:[~2015-12-02 13:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-02 13:46 [PATCH v2] x86: Fixup IRQs when CPUs go down during shutdown Ross Lagerwall
2015-12-02 13:53 ` Andrew Cooper [this message]
2015-12-02 14:02 ` Jan Beulich
2015-12-02 15:09 ` Ross Lagerwall
2015-12-02 15:30 ` Jan Beulich
2015-12-04 10:46 ` Andrew Cooper
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=565EF7E5.9020305@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=ross.lagerwall@citrix.com \
--cc=xen-devel@lists.xen.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.