public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: george anzinger <george@mvista.com>
To: "Robert H. de Vries" <rhdv@rhdv.cistron.nl>,
	high-res-timers-discourse@lists.sourceforge.net,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: high-res-timers start code.
Date: Mon, 23 Apr 2001 13:43:46 -0700	[thread overview]
Message-ID: <3AE49402.BB093022@mvista.com> (raw)
In-Reply-To: <3AE45D01.F7B91E73@mvista.com> <01042319085701.01113@calvin> <3AE46A37.A0AF78BC@mvista.com> <01042320013203.01113@calvin>

"Robert H. de Vries" wrote:
> 
> On Monday 23 April 2001 19:45, you wrote:
> 
> > By the way, is the user land stuff the same for all "arch"s?
> 
> Not if you plan to handle the CPU cycle counter in user space. That is at
> least what I would propose.

Just got interesting, lets let the world look in.

What did you have in mind here?  I suspect that on some archs the cycle
counter is not available to user code.  I know that on parisc it is
optionally available (kernel can set a bit to make it available), but by
it self it is only good for intervals.  You need to peg some value to a
CLOCK to use it to get timeofday, for instance.

On the other hand, if there is an area of memory that both users and
system can read but only system can write, one might put the soft clock
there.  This would allow gettimeofday (with the cycle counter) to work
without a system call.  To the best of my knowledge the system does not
have such an area as yet.

comments?

George

> System call stuff, yes. There may be gotcha's in the area of 32/64
> interfaces. Almost all 64 bit archs also support 32 bit interfaces (check out
> the stuff in my patch regarding the SPARC, kindly donated by Jakub Jelinek).
> 
>         Robert
> 
> --
> Robert de Vries
> rhdv@rhdv.cistron.nl

       reply	other threads:[~2001-04-23 20:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3AE45D01.F7B91E73@mvista.com>
     [not found] ` <01042319085701.01113@calvin>
     [not found]   ` <3AE46A37.A0AF78BC@mvista.com>
     [not found]     ` <01042320013203.01113@calvin>
2001-04-23 20:43       ` george anzinger [this message]
2001-04-24 10:42         ` high-res-timers start code Gabriel Paubert
2001-04-24 14:52           ` george anzinger
2001-04-23 21:25 Robert H. de Vries

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=3AE49402.BB093022@mvista.com \
    --to=george@mvista.com \
    --cc=high-res-timers-discourse@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rhdv@rhdv.cistron.nl \
    /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