mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: john stultz <johnstul@us.ibm.com>
To: Andi Kleen <ak@suse.de>
Cc: Linus Torvalds <torvalds@transmeta.com>,
	Andrew Morton <akpm@digeo.com>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] linux-2.5.66_monotonic-clock_A3
Date: 31 Mar 2003 10:39:09 -0800	[thread overview]
Message-ID: <1049135948.971.177.camel@w-jstultz2.beaverton.ibm.com> (raw)
In-Reply-To: <p73el4qzjtx.fsf@oldwotan.suse.de>

On Fri, 2003-03-28 at 23:57, Andi Kleen wrote:
> john stultz <johnstul@us.ibm.com> writes:
> 
> > +	do {
> > +		seq = read_seqbegin(&xtime_lock);
> > +		ret = timer->monotonic_clock();
> > +	} while (read_seqretry(&xtime_lock, seq));
> 
> Why does it need to check xtime lock ? xtime should be independent 
> of the monotonic time because it can be changed. 

Ok, fair enough. I was using the xtime lock to protect monotonic_base in
(updated in mark_offset()), but since that isn't obvious I should be
more explicit and use a different lock. 

> Also doing seqlocks around hardware register reads is quite nasty,
> because a hardware register read can be hundreds of cycles and you're
> very likely to get retries. If you really need a seqlock I would
> move it into the low level function and do it after the hardware access.
> But as far as I can see it can be just removed.

I should be able to use a regular rwlock w/o troubles. I change that and
resubmit. 

thanks for the feedback!
-john




  reply	other threads:[~2003-03-31 18:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1048892109.975.150.camel@w-jstultz2.beaverton.ibm.com.suse.lists.linux.kernel>
2003-03-29  7:57 ` Andi Kleen
2003-03-31 18:39   ` john stultz [this message]
2003-03-28 22:55 john stultz
2003-03-29  0:24 ` 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=1049135948.971.177.camel@w-jstultz2.beaverton.ibm.com \
    --to=johnstul@us.ibm.com \
    --cc=ak@suse.de \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.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®