Commit ea7e61d8 authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] two fixups where promotion and demotion were mixed up

Signed-off-by: default avatarDominik Brodowski <linux@brodo.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 7ae42954
......@@ -439,13 +439,13 @@ acpi_processor_set_power_policy (
if (higher) {
cx->promotion.state = higher;
cx->demotion.threshold.ticks = cx->latency_ticks;
cx->promotion.threshold.ticks = cx->latency_ticks;
if (cx->type >= ACPI_STATE_C2)
cx->promotion.threshold.count = 4;
else
cx->promotion.threshold.count = 10;
if (higher->type == ACPI_STATE_C3)
cx->demotion.threshold.bm = 0x0F;
cx->promotion.threshold.bm = 0x0F;
}
higher = cx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment