public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] intel_idle: Make the auto-demotion flag generic
@ 2015-02-25  6:36 Srinidhi Kasagar
  0 siblings, 0 replies; only message in thread
From: Srinidhi Kasagar @ 2015-02-25  6:36 UTC (permalink / raw)
  To: len.brown; +Cc: linux-kernel, rjw, srinidhi.kasagar

Disabling core and module C6 auto-demotion helps other Intel
platforms other than just Baytrail.

Signed-off-by: Srinidhi Kasagar <srinidhi.kasagar@intel.com>
---
 drivers/idle/intel_idle.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
index 9cceacb92f9d..c99a099a9cdc 100644
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -89,7 +89,7 @@ struct idle_cpu {
 	 * Indicate which enable bits to clear here.
 	 */
 	unsigned long auto_demotion_disable_flags;
-	bool byt_auto_demotion_disable_flag;
+	bool auto_demotion_disable_flag;
 	bool disable_promotion_to_c1e;
 };
 
@@ -674,7 +674,7 @@ static const struct idle_cpu idle_cpu_snb = {
 static const struct idle_cpu idle_cpu_byt = {
 	.state_table = byt_cstates,
 	.disable_promotion_to_c1e = true,
-	.byt_auto_demotion_disable_flag = true,
+	.auto_demotion_disable_flag = true,
 };
 
 static const struct idle_cpu idle_cpu_ivb = {
@@ -884,7 +884,7 @@ static int __init intel_idle_cpuidle_driver_init(void)
 	if (icpu->auto_demotion_disable_flags)
 		on_each_cpu(auto_demotion_disable, NULL, 1);
 
-	if (icpu->byt_auto_demotion_disable_flag) {
+	if (icpu->auto_demotion_disable_flag) {
 		wrmsrl(MSR_CC6_DEMOTION_POLICY_CONFIG, 0);
 		wrmsrl(MSR_MC6_DEMOTION_POLICY_CONFIG, 0);
 	}
-- 
1.7.9.5


-- 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-25  6:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25  6:36 [PATCH] intel_idle: Make the auto-demotion flag generic Srinidhi Kasagar

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