From: George Dunlap <george.dunlap@eu.citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] xen, credit2: Avoid extra c2t calcuation in csched_runtime
Date: Thu, 24 Jan 2013 16:10:28 +0000 [thread overview]
Message-ID: <51015CF4.6010608@eu.citrix.com> (raw)
In-Reply-To: <5101595A.2060509@eu.citrix.com>
On 24/01/13 15:55, George Dunlap wrote:
>>
>>> struct csched_runqueue_data *rqd = RQD(ops, cpu);
>>> struct list_head *runq = &rqd->runq;
>>> if ( is_idle_vcpu(snext->vcpu) )
>>> return CSCHED_MAX_TIMER;
>>> - /* Basic time */
>>> - time = c2t(rqd, snext->credit, snext);
>>> + /* General algorithm:
>>> + * 1) Run until snext's credit will be 0
>>> + * 2) But if someone is waiting, run until snext's credit is equal
>>> + * to his
>>> + * 3) But never run longer than MAX_TIMER or shorter than
>>> MIN_TIMER.
>>> + */
>>> - /* Next guy on runqueue */
>>> + /* 1) Basic time: Run until credit is 0. */
>>> + rt_credit = snext->credit;
>>> +
>>> + /* 2) If there's someone waiting whose credit is positive,
>> ... who's ...?
>
> Nope. :-) "Who's" is short for "who is". "Whose" is a pronoun which
> links back to "someone waiting". (I suppose "whose" is the person
> version of "which", which I used in both the previous sentence and
> this one.)
OK, for the really serious grammar students:
"Whose" isn't a pronoun, it's an adjective indicating "owned by who" or
"of who"; in this case, "whose" is modifying "credit". It's a similar
construction to the following:
"If there's someone waiting who has positive credit, ..."
-George
prev parent reply other threads:[~2013-01-24 16:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-24 15:24 [PATCH] xen, credit2: Avoid extra c2t calcuation in csched_runtime George Dunlap
2013-01-24 15:45 ` Jan Beulich
2013-01-24 15:53 ` Tim Deegan
2013-01-24 15:55 ` George Dunlap
2013-01-24 16:10 ` Jan Beulich
2013-01-24 16: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=51015CF4.6010608@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=JBeulich@suse.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 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).