mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [tip:timers/ntp] time: apply NTP frequency/tick changes immediately, fix
       [not found] <tip-a66a97da747f7a119f45626c9d8170f8cac61b37@kernel.org>
@ 2009-02-26 18:08 ` John Stultz
  2009-02-26 18:40   ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: John Stultz @ 2009-02-26 18:08 UTC (permalink / raw)
  To: hpa, mingo, williams, tglx, mingo, linux-kernel

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) {


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [tip:timers/ntp] time: apply NTP frequency/tick changes immediately, fix
  2009-02-26 18:08 ` [tip:timers/ntp] time: apply NTP frequency/tick changes immediately, fix John Stultz
@ 2009-02-26 18:40   ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2009-02-26 18:40 UTC (permalink / raw)
  To: John Stultz; +Cc: hpa, mingo, williams, tglx, linux-kernel


* John Stultz <johnstul@us.ibm.com> wrote:

> 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()

ok, i fixed the title - thanks!

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-26 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <tip-a66a97da747f7a119f45626c9d8170f8cac61b37@kernel.org>
2009-02-26 18:08 ` [tip:timers/ntp] time: apply NTP frequency/tick changes immediately, fix John Stultz
2009-02-26 18:40   ` Ingo Molnar

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®