public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Timer patches (nsec support + fastcalls for gettod/clock_gettime for all clocks)
Date: Mon, 12 Jul 2004 22:01:41 +0000	[thread overview]
Message-ID: <16627.2629.763879.766318@napali.hpl.hp.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0407091545250.5720@schroedinger.engr.sgi.com>

Christoph,

Your putting out patches faster than I can comment on them, so I'll
just start commenting anyhow... ;-)

In general, I think your patches are heading in a good direction.
Very nice to have someone to get this fleshed out properly!

Minor stuff:

 - please avoid trailing whitespace (as usual)
 - please try to stay closer to Linux formatting conventions, e.g.,
   there should be blanks around assignment-operators; also the
   code in time_interpolator_get_offset() is formatted _really_
   strangely
 - the DEBUG-stuff should be dropped in the final version, I think

I haven't reviewed the assembly code yet--the fsys-handlers need great
care (and testing), obviously.  (Does your fsys_gettimeofday() save
"pr" before modifying p1 etc?  I didn't see it, but like I said, I
haven't yet fully reviewed the assembly code.  Also, please use ar.itc
instead of ar44.)

Is there any reason the CPU_TIMER macro couldn't be replaced in
get_cycles()?

Two other comments:

 * Perhaps rename TIME_SOURCE_MEM{32,64} to TIME_SOURCE_MMIO{32,64}
   for clarity?

 * I think the getnstimeofday() changes won't be accepted.  Instead,
   probably a better approach is to switch over to gettimeofday()
   returning a timespec.  IIRC, George Anziger had a patch to do that.
   Perhaps you can ask him to dust off that patch?

	--david

  parent reply	other threads:[~2004-07-12 22:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-09 22:58 Timer patches (nsec support + fastcalls for gettod/clock_gettime Christoph Lameter
2004-07-12 17:45 ` Timer patches (nsec support + fastcalls for gettod/clock_gettime for all clocks) Chen, Kenneth W
2004-07-12 19:15 ` Christoph Lameter
2004-07-12 20:22 ` Christoph Lameter
2004-07-12 22:01 ` David Mosberger [this message]
2004-07-12 23:40 ` Timer patches (nsec support + fastcalls for gettod/clock_gettime Christoph Lameter
2004-07-12 23:48 ` David Mosberger
2004-07-13  1:19 ` Christoph Lameter

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=16627.2629.763879.766318@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.com \
    --cc=linux-ia64@vger.kernel.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