From: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
To: johnstul@us.ibm.com
Cc: linux-kernel@vger.kernel.org, ioe-lkml@rameria.de,
george@mvista.com, ulrich.windl@rz.uni-regensburg.de,
zippel@linux-m68k.org, yoshfuji@linux-ipv6.org
Subject: Re: [RFC][PATCH] NTP shiftR cleanup
Date: Sat, 10 Sep 2005 10:15:27 +0900 (JST) [thread overview]
Message-ID: <20050910.101527.70689095.yoshfuji@linux-ipv6.org> (raw)
In-Reply-To: <1126314217.3455.10.camel@cog.beaverton.ibm.com>
In article <1126314217.3455.10.camel@cog.beaverton.ibm.com> (at Fri, 09 Sep 2005 18:03:37 -0700), john stultz <johnstul@us.ibm.com> says:
> diff --git a/kernel/time.c b/kernel/time.c
> --- a/kernel/time.c
> +++ b/kernel/time.c
> @@ -338,30 +338,20 @@ int do_adjtimex(struct timex *txc)
> if (mtemp >= MINSEC) {
> ltemp = (time_offset / mtemp) << (SHIFT_USEC -
> SHIFT_UPDATE);
> - if (ltemp < 0)
> - time_freq -= -ltemp >> SHIFT_KH;
> - else
> - time_freq += ltemp >> SHIFT_KH;
> + time_freq = shiftR(ltemp, SHIFT_KH);
> } else /* calibration interval too short (p. 12) */
> result = TIME_ERROR;
Maybe, "time_freq += shiftR(ltemp, SHIFT_KH);"?
--yoshfuji
next prev parent reply other threads:[~2005-09-10 1:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-10 1:03 john stultz
2005-09-10 1:15 ` YOSHIFUJI Hideaki / 吉藤英明 [this message]
2005-09-10 1:39 ` Roman Zippel
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=20050910.101527.70689095.yoshfuji@linux-ipv6.org \
--to=yoshfuji@linux-ipv6.org \
--cc=george@mvista.com \
--cc=ioe-lkml@rameria.de \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ulrich.windl@rz.uni-regensburg.de \
--cc=zippel@linux-m68k.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
all inboxes | Powered by JetHome®