Message ID | 20091212181442.GA22832@youquan-linux.bj.intel.com (mailing list archive) |
---|---|
State | RFC, archived |
Headers | show |
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index bbd066e..302d656 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -459,6 +459,10 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr) cx.power = obj->integer.value; current_count++; + + if (current_count == 2 && cx.type != ACPI_STATE_C2) + current_count++; + memcpy(&(pr->power.states[current_count]), &cx, sizeof(cx)); /*