mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Fries <dfries@mail.win.org>
To: linux-kernel@vger.kernel.org
Subject: how to get cpu_khz?
Date: Mon, 17 Sep 2001 11:43:15 -0500	[thread overview]
Message-ID: <20010917114315.A4041@aerospace.fries.net> (raw)

I'm using the TSC of the Pentium processors to get some precise timing
delays for writing to a eeprom (bit banging bus operations), and it
works just fine, but the cpu_khz variable isn't exported to a kernel
module, so I hardcoded in my module.  It works fine for that one
system, but obviously I don't want to hard code it for the general
case.  I guess I could write my own routine to figure out what the
cpu_khz is, but it is already done, so how do I get access to it?

-- 
		+---------------------------------+
		|      David Fries                |
		|      dfries@mail.win.org        |
		+---------------------------------+

             reply	other threads:[~2001-09-17 16:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-17 16:43 David Fries [this message]
     [not found] <fa.ginsptv.1gg45b5@ifi.uio.no>
2001-09-17 19:11 ` John Weber
2001-09-17 19:51   ` David Fries
2001-09-17 19:58     ` Richard B. Johnson
2001-09-17 21:26       ` 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=20010917114315.A4041@aerospace.fries.net \
    --to=dfries@mail.win.org \
    --cc=linux-kernel@vger.kernel.org \
    /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®