linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Configure cpuidle governors by default
@ 2007-09-13 20:39 Venki Pallipadi
  2007-09-13 21:30 ` Moore, Robert
  2007-09-22  2:23 ` Len Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Venki Pallipadi @ 2007-09-13 20:39 UTC (permalink / raw)
  To: Len Brown; +Cc: linux-acpi, abelay


Quoting Len "Do not give an option to users to shoot themselves in the foot".

Remove the configurability of ladder and menu governors as they are
needed for default policy of cpuidle. That way users will not be able to
have cpuidle without any policy loosing all C-state power savings.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>

Index: linux-2.6.23-rc6/drivers/cpuidle/Kconfig
===================================================================
--- linux-2.6.23-rc6.orig/drivers/cpuidle/Kconfig
+++ linux-2.6.23-rc6/drivers/cpuidle/Kconfig
@@ -1,4 +1,3 @@
-menu "CPU idle PM support"
 
 config CPU_IDLE
 	bool "CPU idle PM support"
@@ -10,30 +9,13 @@ config CPU_IDLE
 	  If you're using a mobile platform that supports CPU idle PM (e.g.
 	  an ACPI-capable notebook), you should say Y here.
 
-if CPU_IDLE
-
-comment "Governors"
-
 config CPU_IDLE_GOV_LADDER
-	tristate "'ladder' governor"
+	bool
 	depends on CPU_IDLE
 	default y
-	help
-	  This cpuidle governor promotes and demotes through the supported idle
-	  states using residency time and bus master activity as metrics.  This
-	  algorithm was originally introduced in the old ACPI processor driver.
 
 config CPU_IDLE_GOV_MENU
-	tristate "'menu' governor"
+	bool
 	depends on CPU_IDLE && NO_HZ
 	default y
-	help
-	  This cpuidle governor evaluates all available states and chooses the
-	  deepest state that meets all of the following constraints: BM activity,
-	  expected time until next timer interrupt, and last break event time
-	  delta.  It is designed to minimize power consumption.  Currently
-	  dynticks is required.
-
-endif	# CPU_IDLE
 
-endmenu

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

* RE: [PATCH] Configure cpuidle governors by default
  2007-09-13 20:39 [PATCH] Configure cpuidle governors by default Venki Pallipadi
@ 2007-09-13 21:30 ` Moore, Robert
  2007-09-22  2:23 ` Len Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Moore, Robert @ 2007-09-13 21:30 UTC (permalink / raw)
  To: Pallipadi, Venkatesh, Brown, Len; +Cc: linux-acpi, abelay

>> Quoting Len "Do not give an option to users to shoot themselves in
the foot".

Odd, I thought that was a Windows attitude, and Unix/Linux was the
opposite.

"All the rope and more..."

Bob

-----Original Message-----
From: linux-acpi-owner@vger.kernel.org
[mailto:linux-acpi-owner@vger.kernel.org] On Behalf Of Venki Pallipadi
Sent: Thursday, September 13, 2007 1:39 PM
To: Brown, Len
Cc: linux-acpi@vger.kernel.org; abelay@novell.com
Subject: [PATCH] Configure cpuidle governors by default


Quoting Len "Do not give an option to users to shoot themselves in the
foot".

Remove the configurability of ladder and menu governors as they are
needed for default policy of cpuidle. That way users will not be able to
have cpuidle without any policy loosing all C-state power savings.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>

Index: linux-2.6.23-rc6/drivers/cpuidle/Kconfig
===================================================================
--- linux-2.6.23-rc6.orig/drivers/cpuidle/Kconfig
+++ linux-2.6.23-rc6/drivers/cpuidle/Kconfig
@@ -1,4 +1,3 @@
-menu "CPU idle PM support"
 
 config CPU_IDLE
 	bool "CPU idle PM support"
@@ -10,30 +9,13 @@ config CPU_IDLE
 	  If you're using a mobile platform that supports CPU idle PM
(e.g.
 	  an ACPI-capable notebook), you should say Y here.
 
-if CPU_IDLE
-
-comment "Governors"
-
 config CPU_IDLE_GOV_LADDER
-	tristate "'ladder' governor"
+	bool
 	depends on CPU_IDLE
 	default y
-	help
-	  This cpuidle governor promotes and demotes through the
supported idle
-	  states using residency time and bus master activity as
metrics.  This
-	  algorithm was originally introduced in the old ACPI processor
driver.
 
 config CPU_IDLE_GOV_MENU
-	tristate "'menu' governor"
+	bool
 	depends on CPU_IDLE && NO_HZ
 	default y
-	help
-	  This cpuidle governor evaluates all available states and
chooses the
-	  deepest state that meets all of the following constraints: BM
activity,
-	  expected time until next timer interrupt, and last break event
time
-	  delta.  It is designed to minimize power consumption.
Currently
-	  dynticks is required.
-
-endif	# CPU_IDLE
 
-endmenu
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] Configure cpuidle governors by default
  2007-09-13 20:39 [PATCH] Configure cpuidle governors by default Venki Pallipadi
  2007-09-13 21:30 ` Moore, Robert
@ 2007-09-22  2:23 ` Len Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Len Brown @ 2007-09-22  2:23 UTC (permalink / raw)
  To: Venki Pallipadi; +Cc: linux-acpi, abelay

Applied.
Hey, what a great idea:-)

thanks,
-Len

On Thursday 13 September 2007 16:39, Venki Pallipadi wrote:
> 
> Quoting Len "Do not give an option to users to shoot themselves in the foot".
> 
> Remove the configurability of ladder and menu governors as they are
> needed for default policy of cpuidle. That way users will not be able to
> have cpuidle without any policy loosing all C-state power savings.
> 
> Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
> 
> Index: linux-2.6.23-rc6/drivers/cpuidle/Kconfig
> ===================================================================
> --- linux-2.6.23-rc6.orig/drivers/cpuidle/Kconfig
> +++ linux-2.6.23-rc6/drivers/cpuidle/Kconfig
> @@ -1,4 +1,3 @@
> -menu "CPU idle PM support"
>  
>  config CPU_IDLE
>  	bool "CPU idle PM support"
> @@ -10,30 +9,13 @@ config CPU_IDLE
>  	  If you're using a mobile platform that supports CPU idle PM (e.g.
>  	  an ACPI-capable notebook), you should say Y here.
>  
> -if CPU_IDLE
> -
> -comment "Governors"
> -
>  config CPU_IDLE_GOV_LADDER
> -	tristate "'ladder' governor"
> +	bool
>  	depends on CPU_IDLE
>  	default y
> -	help
> -	  This cpuidle governor promotes and demotes through the supported idle
> -	  states using residency time and bus master activity as metrics.  This
> -	  algorithm was originally introduced in the old ACPI processor driver.
>  
>  config CPU_IDLE_GOV_MENU
> -	tristate "'menu' governor"
> +	bool
>  	depends on CPU_IDLE && NO_HZ
>  	default y
> -	help
> -	  This cpuidle governor evaluates all available states and chooses the
> -	  deepest state that meets all of the following constraints: BM activity,
> -	  expected time until next timer interrupt, and last break event time
> -	  delta.  It is designed to minimize power consumption.  Currently
> -	  dynticks is required.
> -
> -endif	# CPU_IDLE
>  
> -endmenu
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

end of thread, other threads:[~2007-09-22  2:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-13 20:39 [PATCH] Configure cpuidle governors by default Venki Pallipadi
2007-09-13 21:30 ` Moore, Robert
2007-09-22  2:23 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).