From: Juergen Gross <jgross@suse.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
xen-devel@lists.xenproject.org
Cc: "Stefano Stabellini" <sstabellini@kernel.org>,
"Wei Liu" <wei.liu2@citrix.com>,
"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
"George Dunlap" <George.Dunlap@eu.citrix.com>,
"Tim Deegan" <tim@xen.org>,
"Ian Jackson" <ian.jackson@eu.citrix.com>,
"Dario Faggioli" <dfaggioli@suse.com>,
"Julien Grall" <julien.grall@arm.com>,
"Jan Beulich" <jbeulich@suse.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [PATCH 1/2] xen: introduce a cpumask with all bits set
Date: Thu, 14 Mar 2019 11:08:24 +0100 [thread overview]
Message-ID: <9dcc617d-4b2d-b67d-50c5-e86d6367fff1@suse.com> (raw)
In-Reply-To: <37e7beea-3bfe-4695-7ced-3ee1690d1af7@citrix.com>
On 14/03/2019 11:04, Andrew Cooper wrote:
> On 14/03/2019 09:59, Juergen Gross wrote:
>> There are several places in Xen allocating a cpumask on the stack and
>> setting all bits in it just to use it as an initial mask for allowing
>> all cpus.
>>
>> Save the stack space and omit the need for runtime initialization by
>> defining a globally accessible cpumask_all variable.
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>
> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>, with one minor
> style suggestions which can be folded on commit.
>
>> diff --git a/xen/arch/x86/io_apic.c b/xen/arch/x86/io_apic.c
>> index daa5e9e5ff..a5344ed727 100644
>> --- a/xen/arch/x86/io_apic.c
>> +++ b/xen/arch/x86/io_apic.c
>> @@ -1892,8 +1891,7 @@ static void __init check_timer(void)
>> vector = IRQ0_VECTOR;
>> clear_irq_vector(0);
>>
>> - cpumask_setall(&mask_all);
>> - if ((ret = bind_irq_vector(0, vector, &mask_all)))
>> + if ((ret = bind_irq_vector(0, vector, &cpumask_all)))
>
> Spaces, seeing as we're modifying the line.
You are aware this file originates from the Linux kernel?
I really don't mind either way, I just wanted to mention it...
Juergen
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-03-14 10:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-14 9:59 [PATCH 0/2] xen: some scheduler related simplifications Juergen Gross
2019-03-14 9:59 ` [PATCH 1/2] xen: introduce a cpumask with all bits set Juergen Gross
2019-03-14 10:04 ` Andrew Cooper
2019-03-14 10:08 ` Juergen Gross [this message]
2019-03-14 10:30 ` George Dunlap
2019-03-16 0:52 ` Dario Faggioli
2019-03-14 13:12 ` Jan Beulich
[not found] ` <5C8A534F020000780021E9C5@suse.com>
2019-03-14 13:25 ` Juergen Gross
2019-03-14 15:33 ` Jan Beulich
2019-03-14 9:59 ` [PATCH 2/2] xen/sched: don't disable scheduler on cpus during suspend Juergen Gross
2019-03-16 3:01 ` Dario Faggioli
2019-03-16 13:14 ` Juergen Gross
2019-03-25 11:49 ` Dario Faggioli
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=9dcc617d-4b2d-b67d-50c5-e86d6367fff1@suse.com \
--to=jgross@suse.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=dfaggioli@suse.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=julien.grall@arm.com \
--cc=konrad.wilk@oracle.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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.