public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Piel <eric.piel@tremplin-utc.net>
To: Alexander Shaposhnikov <shaposh@isp.nsc.ru>
Cc: linux-kernel@vger.kernel.org
Subject: Re: cpufreq driver + wrong cpu time
Date: Mon, 31 Oct 2005 06:21:15 +0900	[thread overview]
Message-ID: <4365394B.4000907@tremplin-utc.net> (raw)
In-Reply-To: <1130677884.3318.15.camel@m00>

Alexander Shaposhnikov wrote:
> Hello to everyone.
> 
Hello Alexander,

> I have written cpufreq_nForce4 kernel driver for  cpufreq subsystem.
> It allows for CPU frequency changing by adjusting FSB speed, for nForce4
> based motherboards. 
> Works for single-cpu systems, as well as for SMP.
> The problem is, after changing CPU(s) speed on SMP systems, programs
> report wrong cpu time (wall time is OK). 
What do you mean by CPU time? Do you mean the output of "time foo" ? How 
do you know the *right* CPU time? Could you provide some examples :-)

Well, anyway, by _rough_ guess, if on UP it works and on SMP it doesn't, 
we could imagine that the difference comes from the fact the tick 
interrupt source is not the same on those systems. You could try to boot 
a UP kernel with local APIC (selectable in the .config) on the 
multi-processor computer to check. Then it might mean that after 
changing the FSB speed, the interrupt source has to be re-programmed...

> What would be the best way to fix this, and shouldn't this be done by
> the cpufreq subsystem, rather than by hardware driver? 
> 
Probably the best place to discuss about cpufreq is the dedicated 
mailing list : cpufreq@lists.linux.org.uk . If you don't mind, you could 
  continue there.

Also please, provide the sources of your driver to have a look :-)

cu,
Eric

  reply	other threads:[~2005-10-30 21:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-30 13:11 cpufreq driver + wrong cpu time Alexander Shaposhnikov
2005-10-30 21:21 ` Eric Piel [this message]
2005-10-31  5:44   ` Alexander Shaposhnikov

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=4365394B.4000907@tremplin-utc.net \
    --to=eric.piel@tremplin-utc.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shaposh@isp.nsc.ru \
    /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