cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ryan Underwood <nemesis@icequake.net>
To: Bruno Ducrot <ducrot@poupinou.org>
Cc: Cpufreq@lists.linux.org.uk, nemesis@icequake.net
Subject: Re: writing a cpufreq driver
Date: Fri, 22 Sep 2006 11:00:25 -0500	[thread overview]
Message-ID: <20060922160025.GA4459@dbz.icequake.net> (raw)
In-Reply-To: <20060922153948.GN4945@poupinou.org>


On Fri, Sep 22, 2006 at 05:39:49PM +0200, Bruno Ducrot wrote:
> That may indicate TSC frequency is constant.  Try to add a
> .flags = CPUFREQ_CONST_LOOPS
> onto the driver like this:
> 
> > static struct cpufreq_driver toshiba_freq_driver = {
> > 	.get	= toshiba_freq_get_cpu_frequency,
> > 	.verify	= toshiba_freq_verify,
> > 	.target	= toshiba_freq_target,
> > 	.init	= toshiba_freq_cpu_init,
> > 	.exit	= toshiba_freq_cpu_exit,
> > 	.name	= "toshiba_freq",
> > 	.owner	= THIS_MODULE,
> > 	.attr	= toshiba_freq_attr,
>         .flags	= CPUFREQ_CONST_LOOPS,
> 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 	HERE
> > };

That worked.  Looks like the CPU MHZ isn't changing really (on this
machine at least).

-- 
Ryan Underwood, <nemesis@icequake.net>

  reply	other threads:[~2006-09-22 16:00 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-21 18:48 writing a cpufreq driver Ryan Underwood
2006-09-21 19:31 ` Dave Jones
2006-09-21 19:38   ` Langsdorf, Mark
2006-09-21 19:47     ` Dave Jones
2006-09-22 15:44       ` Bruno Ducrot
2006-09-22 15:49         ` Dave Jones
2006-09-21 20:08   ` Ryan Underwood
2006-09-21 20:44     ` Dave Jones
2006-09-21 21:03       ` Ryan Underwood
2006-09-21 21:13         ` Dave Jones
2006-09-22 14:13           ` Ryan Underwood
2006-09-22 14:39             ` Ryan Underwood
2006-09-22 15:48               ` Bruno Ducrot
2006-09-22 16:01                 ` Ryan Underwood
2006-09-22 15:51               ` Dave Jones
2006-09-22 15:39 ` Bruno Ducrot
2006-09-22 16:00   ` Ryan Underwood [this message]
2006-09-22 16:05     ` Bruno Ducrot
2006-09-22 16:11       ` Ryan Underwood
2006-09-23 15:07         ` Bruno Ducrot
2006-09-23 15:21           ` Ryan Underwood
2006-09-23 15:44             ` Bruno Ducrot
2006-09-23 16:03               ` Ryan Underwood
2006-09-23 16:13                 ` Bruno Ducrot
2006-09-25 15:39                   ` Ryan Underwood
2006-10-02  2:19                     ` Dominik Brodowski
2006-09-25 16:44                   ` Ryan Underwood
  -- strict thread matches above, loose matches on Subject: below --
2006-09-22 16:31 Erik Slagter
2006-09-23 15:31 ` Bruno Ducrot

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=20060922160025.GA4459@dbz.icequake.net \
    --to=nemesis@icequake.net \
    --cc=Cpufreq@lists.linux.org.uk \
    --cc=ducrot@poupinou.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