From: John Stultz <johnstul@us.ibm.com>
To: hpa@zytor.com, mingo@redhat.com, williams@redhat.com,
tglx@linutronix.de, mingo@elte.hu, linux-kernel@vger.kernel.org
Subject: Re: [tip:timers/ntp] time: apply NTP frequency/tick changes immediately, fix
Date: Thu, 26 Feb 2009 10:08:05 -0800 [thread overview]
Message-ID: <1235671685.3793.31.camel@jstultz-laptop> (raw)
In-Reply-To: <tip-a66a97da747f7a119f45626c9d8170f8cac61b37@kernel.org>
On Thu, 2009-02-26 at 17:57 +0000, John Stultz wrote:
> Author: John Stultz <johnstul@us.ibm.com>
> AuthorDate: Thu, 26 Feb 2009 09:46:14 -0800
> Commit: Ingo Molnar <mingo@elte.hu>
> CommitDate: Thu, 26 Feb 2009 18:55:36 +0100
>
> time: apply NTP frequency/tick changes immediately, fix
Sorry, the commit name isn't quite right there. I should have added the
patch name explicitly. This patch was a fix to the following patch in
-tip:
time: ntp: fix bug in ntp_update_offset() & do_adjtimex()
thanks
-john
> The time_status conditional was accidentally placed right after we clear
> the checked time_status bits, which causes us to take the conditional
> every time through. This fixes it by moving the conditional to before we
> clear the time_status bits.
>
> Signed-off-by: John Stultz <johnstul@us.ibm.com>
> Cc: Clark Williams <williams@redhat.com>
> Signed-off-by: Ingo Molnar <mingo@elte.hu>
>
>
> ---
> kernel/time/ntp.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
> index c74eb7d..7fc6437 100644
> --- a/kernel/time/ntp.c
> +++ b/kernel/time/ntp.c
> @@ -365,8 +365,6 @@ static inline void process_adj_status(struct timex *txc, struct timespec *ts)
> time_state = TIME_OK;
> time_status = STA_UNSYNC;
> }
> - /* only set allowed bits */
> - time_status &= STA_RONLY;
>
> /*
> * If we turn on PLL adjustments then reset the
> @@ -375,6 +373,8 @@ static inline void process_adj_status(struct timex *txc, struct timespec *ts)
> if (!(time_status & STA_PLL) && (txc->status & STA_PLL))
> time_reftime = xtime.tv_sec;
>
> + /* only set allowed bits */
> + time_status &= STA_RONLY;
> time_status |= txc->status & ~STA_RONLY;
>
> switch (time_state) {
next parent reply other threads:[~2009-02-26 18:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <tip-a66a97da747f7a119f45626c9d8170f8cac61b37@kernel.org>
2009-02-26 18:08 ` John Stultz [this message]
2009-02-26 18:40 ` Ingo Molnar
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=1235671685.3793.31.camel@jstultz-laptop \
--to=johnstul@us.ibm.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=williams@redhat.com \
/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
all inboxes | Powered by JetHome®