From: John Stultz <john.stultz@linaro.org>
To: Jan Beulich <JBeulich@suse.com>
Cc: David Vrabel <david.vrabel@citrix.com>,
Richard Cochran <richardcochran@gmail.com>,
Ingo Molnar <mingo@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
xen-devel@lists.xen.org, Prarit Bhargava <prarit@redhat.com>,
LKML <linux-kernel@vger.kernel.org>,
stable <stable@vger.kernel.org>
Subject: Re: [Xen-devel] [RFC][PATCH 3/3] timekeeping: Fix potential lost pv notification of time change
Date: Tue, 10 Dec 2013 14:30:11 -0800 [thread overview]
Message-ID: <52A795F3.9040107@linaro.org> (raw)
In-Reply-To: <52A6DB24020000780010BAC6@nat28.tlf.novell.com>
On 12/10/2013 12:13 AM, Jan Beulich wrote:
>>>> On 10.12.13 at 06:09, John Stultz <john.stultz@linaro.org> wrote:
>> static cycle_t logarithmic_accumulation(struct timekeeper *tk, cycle_t offset,
>> - u32 shift)
>> + u32 shift, int *action)
> With plain int used here, ...
>
>> @@ -1369,7 +1369,7 @@ static void update_wall_time(void)
>> struct timekeeper *tk = &shadow_timekeeper;
>> cycle_t offset;
>> int shift = 0, maxshift;
>> - unsigned int action;
>> + unsigned int action = 0;
> ... and unsigned int used here, ...
>
>> @@ -1404,7 +1404,7 @@ static void update_wall_time(void)
>> maxshift = (64 - (ilog2(ntp_tick_length())+1)) - 1;
>> shift = min(shift, maxshift);
>> while (offset >= tk->cycle_interval) {
>> - offset = logarithmic_accumulation(tk, offset, shift);
>> + offset = logarithmic_accumulation(tk, offset, shift, &action);
> ... does this compile without warning for you?
It does compile without a warning, but I'll fix it none the less!
Thanks for pointing this out!
-john
next prev parent reply other threads:[~2013-12-10 22:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-10 5:09 [RFC][PATCH 0/3] Couple of timekeeping fixes John Stultz
2013-12-10 5:09 ` [RFC][PATCH 1/3] timekeeping: Fix lost updates to tai adjustment John Stultz
2013-12-10 5:09 ` [RFC][PATCH 2/3] timekeeping: Fix missing timekeeping_update in suspend path John Stultz
2013-12-10 5:09 ` [RFC][PATCH 3/3] timekeeping: Fix potential lost pv notification of time change John Stultz
2013-12-10 5:09 ` John Stultz
2013-12-10 8:13 ` [Xen-devel] " Jan Beulich
2013-12-10 22:30 ` John Stultz [this message]
2013-12-10 22:30 ` John Stultz
2013-12-10 8:13 ` Jan Beulich
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=52A795F3.9040107@linaro.org \
--to=john.stultz@linaro.org \
--cc=JBeulich@suse.com \
--cc=david.vrabel@citrix.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=prarit@redhat.com \
--cc=richardcochran@gmail.com \
--cc=stable@vger.kernel.org \
--cc=tglx@linutronix.de \
--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.