Skip to contentSkip to conversation

CPUIDLE: max_cstate fix

PATCH New Adam Belay 1 participant 1 message Aug 21, 2007 ACPI

lore
Share & tools
lore

Adam Belay

author
#0 lore raw

PATCH 4/6 CPUIDLE: max_cstate fix

Currently max_cstate is limited to 0, resulting in no idle processor power management on ACPI platforms. This patch restores the value to the array size.

Please Apply,
Adam

Change Summary:

 processor_idle.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

drivers/acpi/processor_idle.c +1 -1
diff -urN a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
@@ -67,7 +67,7 @@
 #define C2_OVERHEAD			1	/* 1us */
 #define C3_OVERHEAD			1	/* 1us */
 
-static unsigned int max_cstate __read_mostly;
+static unsigned int max_cstate __read_mostly = ACPI_PROCESSOR_MAX_POWER;
 module_param(max_cstate, uint, 0000);
 static unsigned int nocst __read_mostly;
 module_param(nocst, uint, 0000);