X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=drivers%2Facpi%2Fprocessor_idle.c;h=0efa59e7e3afd16095fa538f333f11f37ca7a9d4;hb=fbe8cddd2d85979d273d7937a2b8a47498694d91;hp=1f60ccbd4c398e520740faa0f129cf6ab4d281a7;hpb=7e275cc4e8e20f82740bf40ae2f5695e9e35ff09;p=karo-tx-linux.git diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 1f60ccbd4c39..0efa59e7e3af 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -515,7 +515,8 @@ static void acpi_processor_power_verify_c2(struct acpi_processor_cx *cx) static void acpi_processor_power_verify_c3(struct acpi_processor *pr, struct acpi_processor_cx *cx) { - static int bm_check_flag; + static int bm_check_flag = -1; + static int bm_control_flag = -1; if (!cx->address) @@ -545,12 +546,14 @@ static void acpi_processor_power_verify_c3(struct acpi_processor *pr, } /* All the logic here assumes flags.bm_check is same across all CPUs */ - if (!bm_check_flag) { + if (bm_check_flag == -1) { /* Determine whether bm_check is needed based on CPU */ acpi_processor_power_init_bm_check(&(pr->flags), pr->id); bm_check_flag = pr->flags.bm_check; + bm_control_flag = pr->flags.bm_control; } else { pr->flags.bm_check = bm_check_flag; + pr->flags.bm_control = bm_control_flag; } if (pr->flags.bm_check) {