linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Tobler <toa@pop.agri.ch>
To: LinuxPPC Dev <linuxppc-dev@lists.linuxppc.org>
Subject: G3 bus speed detector
Date: Thu, 21 Nov 2002 20:45:15 +0100	[thread overview]
Message-ID: <3DDD37CB.70005@pop.agri.ch> (raw)

[-- Attachment #1: Type: text/plain, Size: 948 bytes --]

Hello,

attached a little module I hacked. This module calculates the bus, cpu
and the L2 frequency of a G3 based system. I tested it on a pm8600
G3/500 and a wallstreet I.
We can discuss about the need of such a module, yes. Possibly useless
except for me. I did it to learn a bit module programming and asm. Also
I was annoyed that my wallstreet reports 100MHz bus frequency from OF.

It would be great if I could get some feedback regarding functionality
and other issues.

PLEASE keep in mind, TRY IT ON YOUR OWN RISK. It should be safe now, but
you never know.

make,
make install (as root)
insmod clock_cpu_mod
sync (just to be on the safe side)

cat /proc/cpu_clock

[root@pm8600 clock]# cat /proc/cpu_clock
CPU clock: detecting CPU clock
PPC 740/750
Bus frequency : 49997936 Hz
CPU frequency : 499979360 Hz
L2  frequency : 249989680 Hz
cpu-rev:  3.2 COP
Clock:  End of Test


That's it.

TIA,

Andreas

P.S, thanks goes once again to benh.

[-- Attachment #2: clock-21112002.tar.gz --]
[-- Type: application/x-gzip, Size: 5822 bytes --]

                 reply	other threads:[~2002-11-21 19:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3DDD37CB.70005@pop.agri.ch \
    --to=toa@pop.agri.ch \
    --cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).