aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r--drivers/acpi/processor_idle.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 72069ba5f1ed..4840c79fd8e0 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -512,7 +512,8 @@ static void acpi_processor_power_verify_c2(struct acpi_processor_cx *cx)
512static void acpi_processor_power_verify_c3(struct acpi_processor *pr, 512static void acpi_processor_power_verify_c3(struct acpi_processor *pr,
513 struct acpi_processor_cx *cx) 513 struct acpi_processor_cx *cx)
514{ 514{
515 static int bm_check_flag; 515 static int bm_check_flag = -1;
516 static int bm_control_flag = -1;
516 517
517 518
518 if (!cx->address) 519 if (!cx->address)
@@ -542,12 +543,14 @@ static void acpi_processor_power_verify_c3(struct acpi_processor *pr,
542 } 543 }
543 544
544 /* All the logic here assumes flags.bm_check is same across all CPUs */ 545 /* All the logic here assumes flags.bm_check is same across all CPUs */
545 if (!bm_check_flag) { 546 if (bm_check_flag == -1) {
546 /* Determine whether bm_check is needed based on CPU */ 547 /* Determine whether bm_check is needed based on CPU */
547 acpi_processor_power_init_bm_check(&(pr->flags), pr->id); 548 acpi_processor_power_init_bm_check(&(pr->flags), pr->id);
548 bm_check_flag = pr->flags.bm_check; 549 bm_check_flag = pr->flags.bm_check;
550 bm_control_flag = pr->flags.bm_control;
549 } else { 551 } else {
550 pr->flags.bm_check = bm_check_flag; 552 pr->flags.bm_check = bm_check_flag;
553 pr->flags.bm_control = bm_control_flag;
551 } 554 }
552 555
553 if (pr->flags.bm_check) { 556 if (pr->flags.bm_check) {