public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Frank Sorenson <frank@tuxrocks.com>
To: john stultz <johnstul@us.ibm.com>
Cc: 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, Nishanth Aravamudan <nacc@us.ibm.com>
Subject: Re: [RFC][PATCH 1/6] new timeofday core subsystem
Date: Sat, 16 Jul 2005 02:32:14 -0600	[thread overview]
Message-ID: <42D8C60E.8040807@tuxrocks.com> (raw)
In-Reply-To: <1121484326.28999.3.camel@cog.beaverton.ibm.com>

-----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?

Thanks,

Frank
- --
Frank Sorenson - KD7TZK
Systems Manager, Computer Science Department
Brigham Young University
frank@tuxrocks.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC2MYNaI0dwg4A47wRAiQoAJ9vUvpjE7KmhCNW7NJ6kfd0SuyvXwCg+NtN
pXqoz0v5Tbf5OMFjhYSzPp0=
=LT9E
-----END PGP SIGNATURE-----

  parent reply	other threads:[~2005-07-16  8:33 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 ` Frank Sorenson [this message]
2005-07-16 16:44   ` [RFC][PATCH 1/6] new timeofday core subsystem Nishanth Aravamudan
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=42D8C60E.8040807@tuxrocks.com \
    --to=frank@tuxrocks.com \
    --cc=benh@kernel.crashing.org \
    --cc=clameter@sgi.com \
    --cc=george@mvista.com \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nacc@us.ibm.com \
    --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