From: Martin Cracauer <cracauer@cons.org>
To: cpufreq@lists.linux.org.uk
Subject: Need to reuse cpufreq's recalibration code
Date: Thu, 9 Nov 2006 16:32:28 -0500 [thread overview]
Message-ID: <20061109213228.GA72108@cons.org> (raw)
Hi,
I am messing with the CPU clocks outside the cpufreq framework (direct
ICS manipulation). While I plan to integrate the code into cpufreq,
at this time I cannot since all the math is pocket calculator.
What I need to do is recalibrate the CPU clocks after I change the
frequency. I observe that the real time clock is correct, but that
CPU time is wrongly accounted for and obviously /proc/cpuinfo isn't
updated. That happens if I use the TCS, mptmr and hpet.
I figured that the best way to proceed is that I reuse some code from
cpufreq, namely cpufreq_notify_transition().
I am looking for advise how to achieve this best without messing up
too much other code.
Maybe I can write an "empty" cpufreq implementation that does nothing
but call cpufreq_notify_transition when I touch one of it's /proc
files?
Platform is x86_64, hardware is Core2 Conroe on D975XBX (975x chipset).
Martin
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
reply other threads:[~2006-11-09 21:32 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=20061109213228.GA72108@cons.org \
--to=cracauer@cons.org \
--cc=cpufreq@lists.linux.org.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.