public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Kevin Diggs <kevdig@hypersurf•com>
To: linuxppc-dev@ozlabs•org
Subject: Re: get_cycles()
Date: Sat, 26 Apr 2008 19:39:07 -0700	[thread overview]
Message-ID: <4813E74B.1020506@hypersurf.com> (raw)
In-Reply-To: <20080426.001102.65527296.davem@davemloft.net>

David Miller wrote:
> From: Kevin Diggs <kevdig@hypersurf•com>
> Date: Sat, 26 Apr 2008 00:54:11 -0700
> 
> 
>>	Anyone know how to turn get_cycles() into an actual time in a module? 
>>ppc_tb_freq does not seem to be exported?
> 
> 
> You should really be using ktime_t and associated interfaces.
> 
This looks pretty cool ... but I don't want to create a dependency on
hrtimer.

So ... How expensive would it be to export ppc_tb_freq? Or add a
get_cycles_tb() function?

kevin

  reply	other threads:[~2008-04-27  1:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-26  7:54 get_cycles() Kevin Diggs
2008-04-26  7:11 ` get_cycles() David Miller
2008-04-27  2:39   ` Kevin Diggs [this message]
2008-04-27  3:21     ` get_cycles() David Miller
2008-04-27 10:35       ` get_cycles() Kevin Diggs
2008-04-28  4:38         ` get_cycles() Tony Breeds

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=4813E74B.1020506@hypersurf.com \
    --to=kevdig@hypersurf$(echo .)com \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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