diff options
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r-- | drivers/acpi/processor_idle.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index c75c7ace8c13..d592dbb1d12a 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -957,13 +957,17 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr) | |||
957 | } else { | 957 | } else { |
958 | continue; | 958 | continue; |
959 | } | 959 | } |
960 | if (cx.type == ACPI_STATE_C1 && idle_halt) { | 960 | if (cx.type == ACPI_STATE_C1 && |
961 | (idle_halt || idle_nomwait)) { | ||
961 | /* | 962 | /* |
962 | * In most cases the C1 space_id obtained from | 963 | * In most cases the C1 space_id obtained from |
963 | * _CST object is FIXED_HARDWARE access mode. | 964 | * _CST object is FIXED_HARDWARE access mode. |
964 | * But when the option of idle=halt is added, | 965 | * But when the option of idle=halt is added, |
965 | * the entry_method type should be changed from | 966 | * the entry_method type should be changed from |
966 | * CSTATE_FFH to CSTATE_HALT. | 967 | * CSTATE_FFH to CSTATE_HALT. |
968 | * When the option of idle=nomwait is added, | ||
969 | * the C1 entry_method type should be | ||
970 | * CSTATE_HALT. | ||
967 | */ | 971 | */ |
968 | cx.entry_method = ACPI_CSTATE_HALT; | 972 | cx.entry_method = ACPI_CSTATE_HALT; |
969 | snprintf(cx.desc, ACPI_CX_DESC_LEN, "ACPI HLT"); | 973 | snprintf(cx.desc, ACPI_CX_DESC_LEN, "ACPI HLT"); |