From: George Dunlap <george.dunlap@eu.citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: KeirFraser <keir@xen.org>,
Andrew Cooper <andrew.cooper3@citrix.com>,
TimDeegan <tim@xen.org>,
Ian Campbell <Ian.Campbell@eu.citrix.com>,
xen-devel <xen-devel@lists.xenproject.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [PATCH] introduce and used relaxed cpumask operations
Date: Wed, 21 Jan 2015 15:10:41 +0000 [thread overview]
Message-ID: <54BFC171.7000206@eu.citrix.com> (raw)
In-Reply-To: <54BFCE7D0200007800057C34@mail.emea.novell.com>
On 01/21/2015 03:06 PM, Jan Beulich wrote:
>>>> On 21.01.15 at 15:42, <george.dunlap@eu.citrix.com> wrote:
>> On 01/21/2015 02:35 PM, Jan Beulich wrote:
>>>>>> On 21.01.15 at 15:28, <george.dunlap@eu.citrix.com> wrote:
>>>> On 01/19/2015 03:58 PM, Jan Beulich wrote:
>>>>> @@ -780,10 +780,7 @@ rt_schedule(const struct scheduler *ops,
>>>>> }
>>>>> else
>>>>> {
>>>>> - cpumask_t cur_cpu;
>>>>> - cpumask_clear(&cur_cpu);
>>>>> - cpumask_set_cpu(cpu, &cur_cpu);
>>>>> - snext = __runq_pick(ops, &cur_cpu);
>>>>> + snext = __runq_pick(ops, cpumask_of(cpu));
>>>>> if ( snext == NULL )
>>>>> snext = rt_vcpu(idle_vcpu[cpu]);
>>>>>
>>>>
>>>> This bit really needs explicit mention in the changelog.
>>>
>>> Already done in response to Andrew's similar request.
>>
>> Ah, sorry -- I saw that but for some reason thought he was talking about
>> a different hunk.
>
> It was indeed, be the wording I added
>
> Note that this
> - adds a volatile qualifier to cpumask_test_and_{clear,set}_cpu()
> (should have been there from the beginning, like is the case for
> cpumask_{clear,set}_cpu())
> - replaces several cpumask_clear()+cpumask_set_cpu(, n) pairs by the
> simpler cpumask_copy(, cpumask_of(n)) (or just cpumask_of(n) if we
> can do without copying)
>
> isn't really specific to where these changes get done (as it's a
> common pattern).
Gotcha, thanks.
-George
prev parent reply other threads:[~2015-01-21 15:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-19 15:58 [PATCH] introduce and used relaxed cpumask operations Jan Beulich
2015-01-21 12:21 ` Andrew Cooper
2015-01-21 14:10 ` Jan Beulich
2015-01-22 15:29 ` Tim Deegan
2015-01-21 14:28 ` George Dunlap
2015-01-21 14:35 ` Jan Beulich
2015-01-21 14:42 ` George Dunlap
2015-01-21 15:06 ` Jan Beulich
2015-01-21 15:10 ` George Dunlap [this message]
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=54BFC171.7000206@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=Ian.Campbell@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=keir@xen.org \
--cc=tim@xen.org \
--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.