All of lore.kernel.org
 help / color / mirror / Atom feed
* Using out of band messages to change min/max frequencies
@ 2012-03-14 17:36 Mark Langsdorf
  2012-03-16 18:26 ` Antti P Miettinen
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Langsdorf @ 2012-03-14 17:36 UTC (permalink / raw)
  To: cpufreq@vger.kernel.org

Does cpufreq currently support having an out-of-band agent
change the available minimum/maximum frequency and then
have the current frequency conform to the new values?

I experimented with a notifier routine (from an IPC
context) that used cpufreq_get_policy() and
cpufreq_update_policy(). I ran into two problems:
1) cpufreq_update_policy() would overwrite the
changes I made to the minimum/maximum settings
2) the driver->target call would be called within
the notifier context, and would explode when it
called its own notifiers.

driver->bios_limit doesn't seem like the right answer,
since it wouldn't be called if the current governor
has a static policy (ie performance, powersave).

Is there some better way to approach this? Ideally,
I'd like something like the ACPI _PPC concept, but
looking over that code I'm not sure it actually
limits the frequency correctly.

--Mark Langsdorf
Calxeda, Inc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-20 14:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 17:36 Using out of band messages to change min/max frequencies Mark Langsdorf
2012-03-16 18:26 ` Antti P Miettinen
2012-03-16 20:56   ` Mark Langsdorf
2012-03-18 14:34     ` Antti P Miettinen
2012-03-20 14:32       ` Mark Langsdorf

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.