summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2009-04-24 10:42:03 -0400
committerLen Brown <len.brown@intel.com>2009-04-24 10:42:03 -0400
commit9c18f0b7095c7981c48f41aae8abdaa06a76d9b3 (patch)
tree6b7dc4c79f232133636e444514e52fabd380ed2e
parent3869e929bb38499b37f8cd76ec96ab6e5a169efb (diff)
parent615dfd93e2346b604232b559e7ea0835d24abe26 (diff)
downloadlinux-3.10-9c18f0b7095c7981c48f41aae8abdaa06a76d9b3.tar.gz
linux-3.10-9c18f0b7095c7981c48f41aae8abdaa06a76d9b3.tar.bz2
linux-3.10-9c18f0b7095c7981c48f41aae8abdaa06a76d9b3.zip
Merge branch 'bugzilla-13142' into release
-rw-r--r--drivers/acpi/processor_idle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 07c7d216c89..f7ca8c55956 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -1030,6 +1030,9 @@ static int acpi_processor_setup_cpuidle(struct acpi_processor *pr)
dev->states[i].desc[0] = '\0';
}
+ if (max_cstate == 0)
+ max_cstate = 1;
+
for (i = 1; i < ACPI_PROCESSOR_MAX_POWER && i <= max_cstate; i++) {
cx = &pr->power.states[i];
state = &dev->states[count];