mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* cpufreq 'choice' Kconfig oddness in 2.6.22-rc6-mm1..
@ 2007-07-07  4:35 Valdis.Kletnieks
  2007-07-07  6:50 ` Mattia Dongili
  0 siblings, 1 reply; 3+ messages in thread
From: Valdis.Kletnieks @ 2007-07-07  4:35 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

So I was looking at drivers/cpufreq/Kconfig, and wondering...

Is there a specific reason why we have a 'choice' clause that allows selecting
'performance' or 'userspace' as the default governor, and no obvious way to
select powersave, ondemand, or conservative as a default? Or was this an
oversight I should cook up a patch for?  Looks like the Kconfig and a bit
of cut-n-paste in include/linux/cpufreq.h is all that's needed?




[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

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

* Re: cpufreq 'choice' Kconfig oddness in 2.6.22-rc6-mm1..
  2007-07-07  4:35 cpufreq 'choice' Kconfig oddness in 2.6.22-rc6-mm1 Valdis.Kletnieks
@ 2007-07-07  6:50 ` Mattia Dongili
  2007-07-08  3:49   ` Valdis.Kletnieks
  0 siblings, 1 reply; 3+ messages in thread
From: Mattia Dongili @ 2007-07-07  6:50 UTC (permalink / raw)
  To: Valdis.Kletnieks; +Cc: linux-kernel

On Sat, Jul 07, 2007 at 12:35:10AM -0400, Valdis.Kletnieks@vt.edu wrote:
> So I was looking at drivers/cpufreq/Kconfig, and wondering...
> 
> Is there a specific reason why we have a 'choice' clause that allows selecting
> 'performance' or 'userspace' as the default governor, and no obvious way to
> select powersave, ondemand, or conservative as a default? Or was this an

Yes, ondemand and conservative may refuse to load/work on systems with
a high transition latency and that is sometimes discovered only at
runtime. This makes them not selectable as default governors.

> oversight I should cook up a patch for?  Looks like the Kconfig and a bit
> of cut-n-paste in include/linux/cpufreq.h is all that's needed?

No, some more work is needed (e.g.: falling back to a different governor
if the selected fails). Thomas Renninger has posted patches on
cpufreq-devel to accomplish that.

cheers
-- 
mattia
:wq!

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

* Re: cpufreq 'choice' Kconfig oddness in 2.6.22-rc6-mm1..
  2007-07-07  6:50 ` Mattia Dongili
@ 2007-07-08  3:49   ` Valdis.Kletnieks
  0 siblings, 0 replies; 3+ messages in thread
From: Valdis.Kletnieks @ 2007-07-08  3:49 UTC (permalink / raw)
  To: Mattia Dongili; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]

On Sat, 07 Jul 2007 15:50:01 +0900, Mattia Dongili said:
> On Sat, Jul 07, 2007 at 12:35:10AM -0400, Valdis.Kletnieks@vt.edu wrote:
> > So I was looking at drivers/cpufreq/Kconfig, and wondering...
> > 
> > Is there a specific reason why we have a 'choice' clause that allows selecting
> > 'performance' or 'userspace' as the default governor, and no obvious way to
> > select powersave, ondemand, or conservative as a default? Or was this an
> 
> Yes, ondemand and conservative may refuse to load/work on systems with
> a high transition latency and that is sometimes discovered only at
> runtime. This makes them not selectable as default governors.

D'Oh! :)  I was trying to set ondemand as the default, only after verifying
that ondemand works as desired on my laptop.  I forgot that we probably need
to also allow for people who don't test before making things default....

> > oversight I should cook up a patch for?  Looks like the Kconfig and a bit
> > of cut-n-paste in include/linux/cpufreq.h is all that's needed?
> 
> No, some more work is needed (e.g.: falling back to a different governor
> if the selected fails). Thomas Renninger has posted patches on
> cpufreq-devel to accomplish that.

OK - I'll keep an eye open and test them out whenever they hit -mm.
In the meantime, an 'echo ondemand' into the right /sys file is working
for me as a workaround.


[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

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

end of thread, other threads:[~2007-07-08  3:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-07  4:35 cpufreq 'choice' Kconfig oddness in 2.6.22-rc6-mm1 Valdis.Kletnieks
2007-07-07  6:50 ` Mattia Dongili
2007-07-08  3:49   ` Valdis.Kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®