public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Aravamudan <nacc@us.ibm.com>
To: Frank Sorenson <frank@tuxrocks.com>
Cc: john stultz <johnstul@us.ibm.com>,
	lkml <linux-kernel@vger.kernel.org>,
	George Anzinger <george@mvista.com>,
	Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>,
	Christoph Lameter <clameter@sgi.com>,
	benh@kernel.crashing.org
Subject: Re: [RFC][PATCH 1/6] new timeofday core subsystem
Date: Sat, 16 Jul 2005 09:44:47 -0700	[thread overview]
Message-ID: <20050716164447.GA5865@us.ibm.com> (raw)
In-Reply-To: <42D8C60E.8040807@tuxrocks.com>

On 16.07.2005 [02:32:14 -0600], Frank Sorenson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> > +extern nsec_t do_monotonic_clock(void);
> This looks okay ...
> 
> > +/**
> > + * do_monotonic_clock - Returns monotonically increasing nanoseconds
> > + *
> > + * Returns the monotonically increasing number of nanoseconds
> > + * since the system booted via __monotonic_clock()
> > + */
> > +nsec_t do_monotonic_clock(void)
> > +{
> > +	nsec_t ret;
> > +	unsigned long seq;
> > +
> > +	/* atomically read __monotonic_clock() */
> > +	do {
> > +		seq = read_seqbegin(&system_time_lock);
> > +
> > +		ret = __monotonic_clock();
> > +
> > +	} while (read_seqretry(&system_time_lock, seq));
> > +
> > +	return ret;
> > +}
> 
> ... but this conflicts with Nish's softtimer patches, which is
> implemented slightly differently.  For those of us who are real gluttons
> for punishment, and want both sets of patches, are there problems just
> removing one of the do_monotonic_clock definitions?

No, in fact, that would be expected. If you are going to apply John's
patches and mine, then you can remove the definition I put in time.c
(technically, I probably should have put that definition in a #ifndef
CONFIG_NEWTOD/#endif block).

My version is basically a non-NEWTOD attempt to get nanosecond uptime.
But, if you have John's timesources, then use them :)

Thanks,
Nish

  reply	other threads:[~2005-07-16 16:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-16  3:25 [RFC][PATCH 1/6] new timeofday core subsystem john stultz
2005-07-16  3:26 ` [PATCH 2/7] new timeofday i386 arch specific changes, part 1 (v. B4) john stultz
2005-07-16  3:27   ` [RFC][PATCH 3/6] new timeofday i386 arch specific changes, part 2 " john stultz
2005-07-16  3:28     ` [RFC][PATCH 4/6] new timeofday i386 arch specific changes, part 3 (v.B4) john stultz
2005-07-16  3:29       ` [RFC][PATCH 5/6] new timeofday i386 arch specific changes, part 4 (v. B4) john stultz
2005-07-16  3:30         ` [RFC][PATCH 6/6] new timeofday i386 specific timesources john stultz
2005-07-16  3:31   ` [PATCH 2/7] new timeofday i386 arch specific changes, part 1 (v. B4) john stultz
2005-07-16  8:32 ` [RFC][PATCH 1/6] new timeofday core subsystem Frank Sorenson
2005-07-16 16:44   ` Nishanth Aravamudan [this message]
2005-07-22  8:08 ` New timeofday subsystem: Lockups Frank Sorenson
2005-07-22 15:09   ` john stultz

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=20050716164447.GA5865@us.ibm.com \
    --to=nacc@us.ibm.com \
    --cc=benh@kernel.crashing.org \
    --cc=clameter@sgi.com \
    --cc=frank@tuxrocks.com \
    --cc=george@mvista.com \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ulrich.windl@rz.uni-regensburg.de \
    /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