From: Thomas Renninger <trenn@suse.de>
To: Myron Stowe <myron.stowe@hp.com>
Cc: Dave Jones <davej@redhat.com>, cpufreq <cpufreq@lists.linux.org.uk>
Subject: Re: cpufreq_set_policy removed
Date: Sat, 23 Jun 2007 19:32:39 +0200 [thread overview]
Message-ID: <1182619959.4976.28.camel@queen.suse.de> (raw)
In-Reply-To: <1182374431.8149.30.camel@localhost>
On Wed, 2007-06-20 at 15:20 -0600, Myron Stowe wrote:
> Thomas, Dave:
>
> Do either of you have a problem with the existence of
> cpufreq_set_policy() or was it only removed because there were no
> remaining callers in the tree and it had bugs?
Both.
In cpufreq_set_policy:
/* this one invokes verify and data->max could get lowered
because of temperature or BIOS limitations
*/
ret = __cpufreq_set_policy(data, policy);
data->user_policy.min = data->min;
data->user_policy.max = data->max;
/* here user_policy.max is getting overridden with a possible
limited value. But it is used in update_policy to restore the
unlimited values again */
data->user_policy.policy = data->policy;
data->user_policy.governor = data->governor;
I think in update_policy:
policy->cpuinfo.min_freq
policy->cpuinfo.max_freq
should get used anyway...
If really needed it could get exported again, but just use
cpu_get/cpu_put, set/unset a lock and invoke __cpufreq_set_policy in
between?
>
> The reason why I ask is that I have been working on a module that
> changes cpufreq governors and I don't see any other way for a module to
> be able to change governors without this interface.
But governor changing is userspace job?
IMO this is not the best argument, why do you need switching governors
inside the kernel?
Thomas
prev parent reply other threads:[~2007-06-23 17:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 21:42 cpufreq_set_policy removed Tony Breeds
2007-06-06 23:01 ` Benjamin Herrenschmidt
2007-06-06 23:13 ` Dave Jones
2007-06-07 1:03 ` Tony Breeds
2007-06-15 17:45 ` Klaus.K Pedersen (Nokia-M/Helsinki)
2007-06-19 12:14 ` Thomas Renninger
2007-06-20 21:20 ` Myron Stowe
2007-06-23 17:32 ` Thomas Renninger [this message]
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=1182619959.4976.28.camel@queen.suse.de \
--to=trenn@suse.de \
--cc=cpufreq@lists.linux.org.uk \
--cc=davej@redhat.com \
--cc=myron.stowe@hp.com \
/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.