mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: john stultz <johnstul@us.ibm.com>
Cc: Richard Cochran <richardcochran@gmail.com>,
	netdev@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	linux-api@vger.kernel.org, Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH 1/2] posix clocks: introduce a syscall for clock tuning.
Date: Thu, 9 Sep 2010 23:31:52 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.00.1009092327300.2477@localhost6.localdomain6> (raw)
In-Reply-To: <1284066084.2762.172.camel@localhost.localdomain>

On Thu, 9 Sep 2010, john stultz wrote:
> On Thu, 2010-09-09 at 12:49 +0200, Thomas Gleixner wrote:
> > But what I see is an approach which tries to implement disconnected
> > special purpose clocks which have the ability to be adjusted
> > independently. What's the purpose of this ? Why can't we just use the
> > existing clocks and make PTP work on them ?
> 
> So this too was my initial gut response. It seems ridiculous to expose
> two clock_ids (CLOCK_REALTIME and CLOCK_PTP)that conceptually represent
> the same thing (ie: number of seconds,nanoseconds since 1970).
> 
> It doesn't help that one of the use cases that Richard suggests is "for
> example in an embedded control application. The userland software can
> simply ignore the wrong system time." 
> 
> As someone who's spent a *lot* of time trying to fix the "wrong system
> time" these use cases reek of work-around solutions instead of properly
> fixing whatever keeps the system time from being accurately sycned.
> 
> However, as I've worked on understanding the issue, I realize that there
> is some validity to needing to expose more then one hardware clock the
> conceptually is the same as CLOCK_REALTIME. And that most of my gut
> reaction to this was me being a bit oversensitive. :)

Yup. It still scares me that we might end up with a dozen different
notions of ONE second elapsed on the same machine :)

> However, since there may be multiple PTP clocks or audio clocks or
> whatever, allocating static clockids for each type isn't quite useful,

Yeah, I corrected myself on that one, but I really want to see some
confinement into well defined clock classes rather than the "hooray
here is my clock of the day" approach.

Thanks,

	tglx

  reply	other threads:[~2010-09-09 21:32 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03  9:27 [PATCH 0/2] [RFC] posix " Richard Cochran
2010-09-03  9:29 ` [PATCH 1/2] posix clocks: introduce a syscall for " Richard Cochran
2010-09-03  9:58   ` Richard Cochran
2010-09-04 14:06   ` Richard Cochran
2010-09-09 10:49   ` Thomas Gleixner
2010-09-09 13:34     ` Richard Cochran
2010-09-09 20:10       ` Thomas Gleixner
2010-09-09 21:16         ` Thomas Gleixner
2010-09-09 22:53           ` john stultz
2010-09-10  9:23             ` Richard Cochran
2010-09-09 21:01     ` john stultz
2010-09-09 21:31       ` Thomas Gleixner [this message]
2010-09-03  9:30 ` [PATCH 2/2] posix clocks: introduce a sysfs presence Richard Cochran
2010-09-09 22:19   ` john stultz
2010-09-09 23:00   ` Alan Cox
2010-09-10  9:31     ` Richard Cochran
2010-09-11  0:20       ` Greg KH
2010-09-04 17:23 ` [PATCH 0/2] [RFC] posix clock tuning Christoph Lameter
2010-09-04 17:48   ` Christian Riesch
2010-09-05  1:37     ` Christoph Lameter
2010-09-05  5:56       ` Richard Cochran
2010-09-05  1:47     ` Christoph Lameter
2010-09-05  6:22       ` Richard Cochran
2010-09-05  7:20         ` Richard Cochran
2010-09-05 23:13           ` Christoph Lameter
2010-09-06  7:09             ` Richard Cochran
2010-09-09  9:58 ` Thomas Gleixner
2010-09-09 12:21   ` Richard Cochran
2010-09-09 12:50     ` Thomas Gleixner
2010-09-09 15:02       ` Alan Cox

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=alpine.LFD.2.00.1009092327300.2477@localhost6.localdomain6 \
    --to=tglx@linutronix.de \
    --cc=johnstul@us.ibm.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=richardcochran@gmail.com \
    /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®