Patchwork [4/5] cpuidle: calxeda: disable power gating by default

login
register
mail settings
Submitter Paolo Pisati
Date March 27, 2013, 6:07 p.m.
Message ID <1364407663-26070-5-git-send-email-paolo.pisati@canonical.com>
Download mbox | patch
Permalink /patch/231783/
State New
Headers show

Comments

Paolo Pisati - March 27, 2013, 6:07 p.m.
From: Rob Herring <rob.herring@calxeda.com>

This only works with the right firmware, so disable by default.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
---
 drivers/cpuidle/cpuidle-calxeda.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/cpuidle/cpuidle-calxeda.c b/drivers/cpuidle/cpuidle-calxeda.c
index e1aab38..b59cef9 100644
--- a/drivers/cpuidle/cpuidle-calxeda.c
+++ b/drivers/cpuidle/cpuidle-calxeda.c
@@ -141,6 +141,7 @@  static int __init calxeda_cpuidle_init(void)
 		dev = per_cpu_ptr(calxeda_idle_cpuidle_devices, cpu_id);
 		dev->cpu = cpu_id;
 		dev->state_count = drv->state_count;
+		dev->states_usage[1].disable = 1;
 
 		ret = cpuidle_register_device(dev);
 		if (ret) {