* Need to reuse cpufreq's recalibration code
@ 2006-11-09 21:32 Martin Cracauer
0 siblings, 0 replies; only message in thread
From: Martin Cracauer @ 2006-11-09 21:32 UTC (permalink / raw)
To: cpufreq
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-09 21:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-09 21:32 Need to reuse cpufreq's recalibration code Martin Cracauer
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.